summaryrefslogtreecommitdiff
path: root/Test
diff options
context:
space:
mode:
Diffstat (limited to 'Test')
-rw-r--r--Test/A05execution.ztst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst
index a504ac41a..52738181d 100644
--- a/Test/A05execution.ztst
+++ b/Test/A05execution.ztst
@@ -288,3 +288,12 @@ F:anonymous function, and a descriptor leak when backgrounding a pipeline
>0
>0
>0
+
+# Regression test for workers/36392
+ print -u $ZTST_fd 'This test takes 3 seconds and hangs the shell when it fails...'
+ callfromchld() { true && { print CHLD } }
+ TRAPCHLD() { callfromchld }
+ sleep 2 & sleep 3; print OK
+0:Background job exit does not affect reaping foreground job
+>CHLD
+>OK