diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2015-08-26 23:12:50 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2015-08-26 23:16:39 +0200 |
commit | bfda86c59e556460f24ce9d4e0903d43381b0e85 (patch) | |
tree | 9d0548ae824b5a7fae2eaddaaee0585a905206df /debian/patches/further-mitigate-test-suite-hangs.patch | |
parent | 353266cc3779c6959cb8387aa3e978fd623fc7d3 (diff) | |
download | zsh-bfda86c59e556460f24ce9d4e0903d43381b0e85.tar.gz zsh-bfda86c59e556460f24ce9d4e0903d43381b0e85.zip |
Update patch to integrate Bart's suggestion on further test suite fixes
Hopefully fixes test suite failure which so far only show up in the
Jenkins builds.
Source of the patch: http://www.zsh.org/mla/workers/2015/msg02205.html
Diffstat (limited to 'debian/patches/further-mitigate-test-suite-hangs.patch')
-rw-r--r-- | debian/patches/further-mitigate-test-suite-hangs.patch | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/debian/patches/further-mitigate-test-suite-hangs.patch b/debian/patches/further-mitigate-test-suite-hangs.patch index 887b8d51a..5fc4ebd12 100644 --- a/debian/patches/further-mitigate-test-suite-hangs.patch +++ b/debian/patches/further-mitigate-test-suite-hangs.patch @@ -1,16 +1,19 @@ Origin: http://www.zsh.org/mla/workers/2014/msg01250.html + http://www.zsh.org/mla/workers/2015/msg02205.html Author: Bart Schaefer <schaefer@brasslantern.com> Bug-Debian: https://bugs.debian.org/759870 Description: Add a sleep call which should prevent a race condition in coproc -diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst -index ca97f4f..0b40a73 100644 ---- a/Test/A05execution.ztst -+++ b/Test/A05execution.ztst -@@ -208,6 +208,7 @@ F:This similar test was triggering a reproducible failure with pipestatus. +Index: zsh/Test/A05execution.ztst +=================================================================== +--- zsh.orig/Test/A05execution.ztst 2015-08-26 23:00:54.942370669 +0200 ++++ zsh/Test/A05execution.ztst 2015-08-26 23:09:35.562131142 +0200 +@@ -207,7 +207,8 @@ + coproc { read -et 5 || { print -u $ZTST_fd KILLED; kill -HUP -$$ } } print -u $ZTST_fd 'This test takes 5 seconds to fail...' { printf "%d\n" {1..20000} } | ( read -e ) - hang(){ printf "%d\n" {2..20000} | cat }; hang | ( read -e ) +- hang(){ printf "%d\n" {2..20000} | cat }; hang | ( 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 |