about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2015-07-23 10:08:19 +0100
committerPeter Stephenson <pws@zsh.org>2015-07-23 10:08:19 +0100
commit53fe58a27825c0eaa95a9aa459650baa69c55aa2 (patch)
tree4f8f7c0888668f43aebc92ef71e54c4298ef7b6d
parentbbd4cae6ad3dc52702e61397cbab9197e55b21b5 (diff)
downloadzsh-53fe58a27825c0eaa95a9aa459650baa69c55aa2.tar.gz
zsh-53fe58a27825c0eaa95a9aa459650baa69c55aa2.tar.xz
zsh-53fe58a27825c0eaa95a9aa459650baa69c55aa2.zip
35873: add original test for process substitution deadlock from 35847
-rw-r--r--ChangeLog2
-rw-r--r--Test/D03procsubst.ztst8
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 418d922ca..c97657e93 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2015-07-23  Peter Stephenson  <p.stephenson@samsung.com>
 
+	* 35873: Test/D03procsubst.ztst: add original test from 35847:
+
 	* 35872: Src/utils.c: protect against NULL pointers in unmeta().
 
 	* 35849: Src/exec.c, Src/jobs.c, Test/D03procsubst.ztst: close
diff --git a/Test/D03procsubst.ztst b/Test/D03procsubst.ztst
index 9ab67c2b4..ca8d56ff5 100644
--- a/Test/D03procsubst.ztst
+++ b/Test/D03procsubst.ztst
@@ -141,3 +141,11 @@
 0:proc subst fd in forked subshell closed in parent
 >1
 >1
+
+  if [[ ! -e test_pipe ]]; then
+    ZTST_skip="mkfifo not available"
+  else
+    echo 1 | tee >(cat > test_pipe) | paste - test_pipe
+  fi
+0:proc subst fd in forked subshell closed in parent (external command)
+>1	1