summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthew LeGendre <legendre1@llnl.gov>2016-03-21 14:28:34 -0700
committerMatthew LeGendre <legendre1@llnl.gov>2016-03-21 14:28:34 -0700
commit5d06daeb5eed28b4b91ba62a8f99165d87b5ef86 (patch)
treedceec1f786113266b71ffde1bc7bdacb8437500d /lib
parentb79fce76cb4d412cf718b48b05d549470e4c55ab (diff)
downloadspack-5d06daeb5eed28b4b91ba62a8f99165d87b5ef86.tar.gz
spack-5d06daeb5eed28b4b91ba62a8f99165d87b5ef86.tar.bz2
spack-5d06daeb5eed28b4b91ba62a8f99165d87b5ef86.tar.xz
spack-5d06daeb5eed28b4b91ba62a8f99165d87b5ef86.zip
Add test for issue 573, child with compiler not respected in concretization
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/concretize.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/spack/spack/test/concretize.py b/lib/spack/spack/test/concretize.py
index f264faf17a..08cce09674 100644
--- a/lib/spack/spack/test/concretize.py
+++ b/lib/spack/spack/test/concretize.py
@@ -309,3 +309,10 @@ class ConcretizeTest(MockPackagesTest):
Spec('d')),
Spec('e'))
self.assertEqual(None, find_spec(s['b'], lambda s: '+foo' in s))
+
+
+ def test_compiler_child(self):
+ s = Spec('mpileaks%clang ^dyninst%gcc')
+ s.concretize()
+ self.assertTrue(s['mpileaks'].satisfies('%clang'))
+ self.assertTrue(s['dyninst'].satisfies('%gcc'))