summaryrefslogtreecommitdiff
path: root/debian/patches/further-mitigate-test-suite-hangs.patch
blob: e498362a9e2927f0d041fec6bec2b0122b4096d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Origin: https://www.zsh.org/mla/workers/2014/msg01250.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

--- a/Test/A05execution.ztst
+++ b/Test/A05execution.ztst
@@ -230,6 +230,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