aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/script')
-rw-r--r--tests/test/script/runner/for.testscript26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/test/script/runner/for.testscript b/tests/test/script/runner/for.testscript
index 5c1133d..1ac7666 100644
--- a/tests/test/script/runner/for.testscript
+++ b/tests/test/script/runner/for.testscript
@@ -148,6 +148,19 @@
%.+
EOE
+ : nested-diag-test-id
+ :
+ $c <<EOI && $b 2>>EOE != 0
+ echo "a b" | for -w x
+ echo "x y" | for -w y
+ test -f $x$y
+ end
+ end
+ EOI
+ testscript:3:5: error: test exited with code 1
+ info: test id: 1
+ EOE
+
: var-value
:
$c <<EOI && $b >>EOO
@@ -346,6 +359,19 @@
%.+
EOE
+ : nested-diag-test-id
+ :
+ $c <<EOI && $b 2>>EOE != 0
+ for -w x <"a b"
+ for -w y <"x y"
+ test -f $x$y
+ end
+ end
+ EOI
+ testscript:3:5: error: test exited with code 1
+ info: test id: 1
+ EOE
+
: var-value
:
$c <<EOI && $b >>EOO