mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-26 18:01:03 +02:00
46067: Add a unit test for workers/46060.
This commit is contained in:
parent
baf4fa3621
commit
6be112fe74
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2020-06-18 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 46067: Test/A05execution.ztst: Add a unit test for
|
||||
workers/46060.
|
||||
|
||||
2020-06-18 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 46060: Src/jobs.c: Ensure process has been signalled before
|
||||
|
|
|
@ -326,6 +326,7 @@ F:anonymous function, and a descriptor leak when backgrounding a pipeline
|
|||
callfromchld() { true && { print CHLD } }
|
||||
TRAPCHLD() { callfromchld }
|
||||
sleep 2 & sleep 3; print OK
|
||||
unfunction TRAPCHLD # don't affect future tests
|
||||
0:Background job exit does not affect reaping foreground job
|
||||
>CHLD
|
||||
>OK
|
||||
|
@ -394,3 +395,9 @@ F:anonymous function, and a descriptor leak when backgrounding a pipeline
|
|||
>127
|
||||
# TBD: the 0 above is believed to be bogus and should also be turned
|
||||
# into 127 when the ccorresponding bug is fixed in the main shell.
|
||||
|
||||
# Without the outer subshell, the test harness reports the pre-46060 behaviour
|
||||
# as "skipped" rather than "failed".
|
||||
(( exit 130 ) | { sleep 1; echo hello })
|
||||
0:exit code 130 isn't mistaken for a signal (unit test for workers/46060)
|
||||
>hello
|
||||
|
|
Loading…
Reference in a new issue