From 6cfbfcc967613d94ab0110003c18d58fb22ad9eb Mon Sep 17 00:00:00 2001 From: Gregory Becker Date: Tue, 2 Apr 2019 19:22:15 -0700 Subject: 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. --- lib/spack/spack/test/spec_semantics.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3-70-g09d2