diff options
Diffstat (limited to 'debian/patches/further-mitigate-test-suite-hangs.patch')
-rw-r--r-- | debian/patches/further-mitigate-test-suite-hangs.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/debian/patches/further-mitigate-test-suite-hangs.patch b/debian/patches/further-mitigate-test-suite-hangs.patch new file mode 100644 index 000000000..a824b76d6 --- /dev/null +++ b/debian/patches/further-mitigate-test-suite-hangs.patch @@ -0,0 +1,32 @@ +Origin: http://www.zsh.org/mla/workers/2014/msg01250.html + http://www.zsh.org/mla/workers/2015/msg02382.html +Author: Bart Schaefer <schaefer@brasslantern.com>, + Peter Stephenson <p.stephenson@samsung.com> +Bug-Debian: https://bugs.debian.org/759870 +Description: Add a sleep call which should prevent a race condition in coproc + +Index: zsh/Test/A05execution.ztst +=================================================================== +--- zsh.orig/Test/A05execution.ztst 2015-09-09 20:44:09.944160810 +0200 ++++ zsh/Test/A05execution.ztst 2015-09-09 20:44:09.940160826 +0200 +@@ -208,6 +208,7 @@ + print -u $ZTST_fd 'This test takes 5 seconds to fail...' + { printf "%d\n" {1..20000} } 2>/dev/null | ( read -e ) + hang(){ printf "%d\n" {2..20000} | cat }; hang 2>/dev/null | ( read -e ) ++ sleep 1 ;: avoid coproc exit race condition + print -p done + read -et 6 -p + 0:Bug regression: piping a shell construct to an external process may hang +Index: zsh/Test/E01options.ztst +=================================================================== +--- zsh.orig/Test/E01options.ztst 2015-09-08 23:39:06.098975526 +0200 ++++ zsh/Test/E01options.ztst 2015-09-09 20:48:47.998938558 +0200 +@@ -995,7 +995,7 @@ + print this is bar >bar + fn() { + local NULLCMD=cat READNULLCMD=cat +- echo hello | >foo ++ { echo hello | >foo } 2>/dev/null + cat foo + <bar + } |