Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Rimmerworld pipeline race



Here's a regression test that seems to work, though the job control
tests are rather brittle.  Not needed for 5.6.1 as I'm happy this is
currently working.

pws


diff --git a/Test/W02jobs.ztst b/Test/W02jobs.ztst
index 1e7ac76c6..98c9f82be 100644
--- a/Test/W02jobs.ztst
+++ b/Test/W02jobs.ztst
@@ -191,6 +191,14 @@
 *>\[2]  ? interrupt*sleep*
 *>\[1]  ? kill*sleep*
 
+  # Use the shell itself to get interactive output to a terminal.
+  # It's bizarrely difficult to find a standard programme to do this.
+  zpty_start
+  zpty_input "echo | { : | $ZTST_testdir/../Src/zsh -ifc 'print Working'; }"
+  zpty_stop	
+0:Regression test for race with process group setting in nested pipeline
+>Working
+
 %clean
 
   zmodload -ui zsh/zpty



Messages sorted by: Reverse Date, Date, Thread, Author