summaryrefslogtreecommitdiffstats
path: root/Test/A05execution.ztst
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-11-05 21:37:23 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2016-11-05 21:37:23 -0700
commitdee0bce7b4137949cb80ccc21339ea128c7bc5d8 (patch)
treef7143eac4ada788061137e1ff4bcf1f9e2082f33 /Test/A05execution.ztst
parent39844: fix "while" condition as per 39839 (commit 2c56c7e5) (diff)
downloadzsh-dee0bce7b4137949cb80ccc21339ea128c7bc5d8.tar
zsh-dee0bce7b4137949cb80ccc21339ea128c7bc5d8.tar.gz
zsh-dee0bce7b4137949cb80ccc21339ea128c7bc5d8.tar.bz2
zsh-dee0bce7b4137949cb80ccc21339ea128c7bc5d8.tar.lz
zsh-dee0bce7b4137949cb80ccc21339ea128c7bc5d8.tar.xz
zsh-dee0bce7b4137949cb80ccc21339ea128c7bc5d8.tar.zst
zsh-dee0bce7b4137949cb80ccc21339ea128c7bc5d8.zip
unposted: tests for 39839, 39844
Diffstat (limited to 'Test/A05execution.ztst')
-rw-r--r--Test/A05execution.ztst13
1 files changed, 13 insertions, 0 deletions
diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst
index 52738181d..0804691a7 100644
--- a/Test/A05execution.ztst
+++ b/Test/A05execution.ztst
@@ -284,6 +284,7 @@ F:anonymous function, and a descriptor leak when backgrounding a pipeline
select x; do :; done; echo $?
select x in; do :; done; echo $?
select x in _*_; do :; done; echo $?
+ unsetopt ERR_EXIT NULL_GLOB
0:The status of "select" is zero when the loop body does not execute
>0
>0
@@ -297,3 +298,15 @@ F:anonymous function, and a descriptor leak when backgrounding a pipeline
0:Background job exit does not affect reaping foreground job
>CHLD
>OK
+
+# Regression test for workers/39839 and workers/39844
+ () { if return 11; then :; fi }; echo $?
+ () { while return 13; do :; done }; echo $?
+ () { until return 17; do :; done }; echo $?
+ () { until false; do return 19; done }; echo $?
+0:"return" in "if" or "while" conditional
+>11
+>13
+>17
+>19
+