aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/test/script/parser+command-if.test.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-06-19 21:45:13 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-06-20 11:27:05 +0300
commit2931b2365c2f00562d0d06ad6e83b74a6618f334 (patch)
treed76adaabeebf1c0d1a6ab86695ace69d66aaf942 /libbuild2/test/script/parser+command-if.test.testscript
parent2756e66940d140b7e378ea5a38354243d74ffe80 (diff)
Fix assertion failure for unbound 'end' in testscript
Issue #83.
Diffstat (limited to 'libbuild2/test/script/parser+command-if.test.testscript')
-rw-r--r--libbuild2/test/script/parser+command-if.test.testscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/libbuild2/test/script/parser+command-if.test.testscript b/libbuild2/test/script/parser+command-if.test.testscript
index bfca9e8..0b72b4a 100644
--- a/libbuild2/test/script/parser+command-if.test.testscript
+++ b/libbuild2/test/script/parser+command-if.test.testscript
@@ -325,6 +325,15 @@
testscript:2:1: error: 'end' without preceding 'if'
EOE
+ : without-if-semi
+ :
+ $* <<EOI 2>>EOE != 0
+ cmd;
+ end
+ EOI
+ testscript:2:1: error: 'end' without preceding 'if'
+ EOE
+
: before
{
: semi