diff --git a/lib/spack/spack/test/spec_list.py b/lib/spack/spack/test/spec_list.py index ff62f6bd6de..4665cbe3870 100644 --- a/lib/spack/spack/test/spec_list.py +++ b/lib/spack/spack/test/spec_list.py @@ -216,10 +216,13 @@ def test_spec_list_constraints_with_structure( assert libdwarf_spec in speclist.specs[0] def test_spec_list_broadcast(self, mock_packages): - matrix = {"matrix": [["mpileaks"], ["^callpath"]], "broadcast": [["%gcc", "%clang"]]} + matrix = { + "matrix": [["mpileaks"], ["^callpath"]], + "broadcast": [["%gcc", "%clang"], ["+debug", "~debug"]]} speclist = SpecList("specs", [matrix]) - assert len(speclist) == 2 + assert len(speclist) == 4 for spec in speclist: for node in spec.traverse(): assert node.compiler.name == spec.compiler.name + assert node.variants["debug"].value == spec.variants["debug"].value