about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-06-18 08:37:27 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-06-18 10:34:11 +0000
commit6be112fe742f458fc9152e5c8e147ae9ff0a7f87 (patch)
treee89bf2d384fcde58c25c1f612f6c0b1d99b605ac /Test
parentbaf4fa362144df84f7aa76f277742474014fa800 (diff)
downloadzsh-6be112fe742f458fc9152e5c8e147ae9ff0a7f87.tar.gz
zsh-6be112fe742f458fc9152e5c8e147ae9ff0a7f87.tar.xz
zsh-6be112fe742f458fc9152e5c8e147ae9ff0a7f87.zip
46067: Add a unit test for workers/46060.
Diffstat (limited to 'Test')
-rw-r--r--Test/A05execution.ztst7
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst
index edc561582..20a594b68 100644
--- a/Test/A05execution.ztst
+++ b/Test/A05execution.ztst
@@ -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