aboutsummaryrefslogtreecommitdiff
path: root/tests/cc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-06-19 12:09:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-06-19 12:09:33 +0200
commit0cf57ad1b3fe49521704c438d02e03eb7cf95c5e (patch)
treeec66bf45ecc330cd6ec18483a191b68d3192e028 /tests/cc
parent062e03325cf9bb7fecfb9ea254ceb5c0cf427a7a (diff)
Make use of exit builtin in modules test
Diffstat (limited to 'tests/cc')
-rw-r--r--tests/cc/modules/testscript6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/cc/modules/testscript b/tests/cc/modules/testscript
index ce2f1e9..07e096d 100644
--- a/tests/cc/modules/testscript
+++ b/tests/cc/modules/testscript
@@ -42,10 +42,7 @@ EOI
print $cxx.features.modules
EOI
-: enabled
-:
-if $modules
-{
++$modules || exit
# Common source files that are symlinked in the test directories if used.
#
@@ -315,4 +312,3 @@ $* test clean <<EOI
exe{test}: cxx{driver} {mxx cxx}{core}
bmie{foo-core}: mxx{foo-core}
EOI
-}