aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser
diff options
context:
space:
mode:
Diffstat (limited to 'unit-tests/test/script/parser')
-rw-r--r--unit-tests/test/script/parser/description.test17
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