summaryrefslogtreecommitdiff
path: root/Test/D03procsubst.ztst
diff options
context:
space:
mode:
authorBart Schaefer <schaefer@zsh.org>2022-05-01 12:17:33 -0700
committerBart Schaefer <schaefer@zsh.org>2022-05-01 12:17:33 -0700
commit8fac1b7c62cb2a70945617e8e1eb95b3b4fabf30 (patch)
treea623d3670df374050e9a344e9abb97abe74f54cb /Test/D03procsubst.ztst
parentf80f880c4ba3f9c37cff24045af23e0af031a71c (diff)
downloadzsh-8fac1b7c62cb2a70945617e8e1eb95b3b4fabf30.tar.gz
zsh-8fac1b7c62cb2a70945617e8e1eb95b3b4fabf30.zip
50160: Regression tests for 50126, 50136, and 50149
Diffstat (limited to 'Test/D03procsubst.ztst')
-rw-r--r--Test/D03procsubst.ztst20
1 files changed, 20 insertions, 0 deletions
diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst
index 1e5cd9f6c..d68db35fa 100644
--- a/Test/D03procsubst.ztst
+++ b/Test/D03procsubst.ztst
@@ -167,5 +167,25 @@
print -rC1 -- $TMPPREFIX*(N)
}
0f:external command with =(...) on LHS of pipeline cleans up its tempfiles
+F:subshells including pipe LHS do not pass through zexit()
# (Expected result: no output.)
+# Confirm tempfile exists in the function, but not after exit
+ () {
+ local -x TMPPREFIX=$PWD/exit
+ $ZTST_testdir/../Src/zsh -fc '
+ () {
+ print -rC1 -- $TMPPREFIX*
+ exit
+ } =(sleep 5)
+ '
+ print -rC1 -- $TMPPREFIX*(N)
+ }
+0:regression test: exit in shell function cleans up tempfiles
+F:see preceding test
+*>*.tmp/exit*
+
+ print -u $ZTST_fd 'This test hangs the shell when it fails...'
+ true | false =(nosuchcommand$$)
+1:regression test: race condition with pipe and procsubst
+*?\(eval\):2: command not found: nosuchcommand*