summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGregory Becker <becker33@llnl.gov>2019-04-02 19:22:15 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2019-07-18 19:28:50 -0700
commit6cfbfcc967613d94ab0110003c18d58fb22ad9eb (patch)
treeae5cf3efdb3f7fe13be2138a9e2deda2544247e5 /lib
parent12c899629477328b36252f2a404ce7935da6461b (diff)
downloadspack-6cfbfcc967613d94ab0110003c18d58fb22ad9eb.tar.gz
spack-6cfbfcc967613d94ab0110003c18d58fb22ad9eb.tar.bz2
spack-6cfbfcc967613d94ab0110003c18d58fb22ad9eb.tar.xz
spack-6cfbfcc967613d94ab0110003c18d58fb22ad9eb.zip
concretization: regression test for constrain() with deps
- ensure that `Spec('foo').constrain('foo ^bar')` works - prior to stacks implementation, this constraint would have done nothing.
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/test/spec_semantics.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/test/spec_semantics.py b/lib/spack/spack/test/spec_semantics.py
index 3b0c4ce391..c3e18af44d 100644
--- a/lib/spack/spack/test/spec_semantics.py
+++ b/lib/spack/spack/test/spec_semantics.py
@@ -695,6 +695,7 @@ class TestSpecSematics(object):
check_constrain_changed('libelf^foo%gcc', 'libelf^foo%gcc@4.5')
check_constrain_changed('libelf^foo', 'libelf^foo+debug')
check_constrain_changed('libelf^foo', 'libelf^foo~debug')
+ check_constrain_changed('libelf', '^foo')
platform = spack.architecture.platform()
default_target = platform.target('default_target').name