From 53fe58a27825c0eaa95a9aa459650baa69c55aa2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 23 Jul 2015 10:08:19 +0100 Subject: [PATCH] 35873: add original test for process substitution deadlock from 35847 --- ChangeLog | 2 ++ Test/D03procsubst.ztst | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index 418d922ca..c97657e93 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,7 @@ 2015-07-23 Peter Stephenson + * 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