aboutsummaryrefslogtreecommitdiff
path: root/unit-tests/test/script/parser/setup-teardown.test
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-25 07:22:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:35 +0200
commita6ae456de2d2bb88de07c80560424e8fb644dfce (patch)
tree6a51120901cde9cb427ec2be07be2fa069cdb3f5 /unit-tests/test/script/parser/setup-teardown.test
parentf2522265c0e778f3c545d8f984b2621369b10c17 (diff)
Diagnose semicolon after testscript setup/teardown commands
Diffstat (limited to 'unit-tests/test/script/parser/setup-teardown.test')
-rw-r--r--unit-tests/test/script/parser/setup-teardown.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/unit-tests/test/script/parser/setup-teardown.test b/unit-tests/test/script/parser/setup-teardown.test
new file mode 100644
index 0000000..fa940fd
--- /dev/null
+++ b/unit-tests/test/script/parser/setup-teardown.test
@@ -0,0 +1,7 @@
+$* <"+cmd;" 2>>EOE != 0 # semi-after-setup
+testscript:1:5: error: expected newline instead of ';'
+EOE
+
+$* <"-cmd;" 2>>EOE != 0 # semi-after-tdown
+testscript:1:5: error: expected newline instead of ';'
+EOE