about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2013-12-21 12:53:59 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2013-12-21 12:53:59 -0800
commit21be065ddf74d97cd400c7cc9df5ddfa436c00d7 (patch)
treeaff4d5c579ea558cfe9c6c7bf9df5d7206bedfe0
parent9887fc3d7b4508bb21e419a8ce12be9c1ba37e4b (diff)
downloadzsh-21be065ddf74d97cd400c7cc9df5ddfa436c00d7.tar.gz
zsh-21be065ddf74d97cd400c7cc9df5ddfa436c00d7.tar.xz
zsh-21be065ddf74d97cd400c7cc9df5ddfa436c00d7.zip
32172: regression test for 32171
-rw-r--r--ChangeLog2
-rw-r--r--Test/A05execution.ztst12
2 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b84f2199..1f108113d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2013-12-20  Barton E. Schaefer  <schaefer@zsh.org>
 
+	* 32172; Test/A05execution.ztst: regression test for 32171
+	
 	* 32171: Src/exec.c: fix leaked pipe descriptor that could
 	deadlock a pipeline from a complex shell construct or function
 	into an external command
diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst
index c8320a14d..61d24fe1e 100644
--- a/Test/A05execution.ztst
+++ b/Test/A05execution.ztst
@@ -202,3 +202,15 @@ F:the bug is still there or it reappeared. See workers-29973 for details.
 0:Check $pipestatus with a known difficult case
 >1 0 1 0 0
 F:This similar test was triggering a reproducible failure with pipestatus.
+
+  { unsetopt MONITOR } 2>/dev/null
+  coproc { read -Et 5 || kill -INT $$ }
+  print -u $ZTST_fd 'This test takes 5 seconds to fail...'
+  { printf "%d\n" {1..20000} } | ( read -E )
+  print -p done
+  read -Ep
+0:Bug regression: piping a shell construct to an external process may hang
+>1
+>done
+F:This test checks for a file descriptor leak that could cause the left
+F:side of a pipe to block on write after the right side has exited