diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-01 17:08:31 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-12-01 17:08:31 +0200 |
commit | ef7cb7ea3e6fcb21a4fcf38602b3f43f03232ace (patch) | |
tree | 7a37583dbe227019e62571d57c92613de3dd4b13 /unit-tests/test | |
parent | 5e71edfa033f163ded9a82f7d66412d8ee05bc48 (diff) |
Implement testscript variable-if
Now a variable-only if is treated the same as a single variable when deciding
whether it is part of a test or setup/teardown.
Diffstat (limited to 'unit-tests/test')
-rw-r--r-- | unit-tests/test/script/parser/description.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/unit-tests/test/script/parser/description.test b/unit-tests/test/script/parser/description.test index b4ab435..16ba287 100644 --- a/unit-tests/test/script/parser/description.test +++ b/unit-tests/test/script/parser/description.test @@ -222,6 +222,23 @@ EOI testscript:2:1: error: description before setup/teardown variable EOE +$* <<EOI 2>>EOE != 0 # illegal-var-if +: foo +if true + x = y +end +EOI +testscript:2:1: error: description before/after setup/teardown variable-if +EOE + +$* <<EOI 2>>EOE != 0 # illegal-var-if-after +if true + x = y +end : foo +EOI +testscript:1:1: error: description before/after setup/teardown variable-if +EOE + $* <<EOI 2>>EOE != 0 # illegal-test cmd1; : foo |