zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: zsh-workers@zsh.org
Subject: [PATCH] Add a unit test for workers/46060.
Date: Thu, 18 Jun 2020 08:38:02 +0000	[thread overview]
Message-ID: <20200618083801.5493-1-danielsh@tarpaulin.shahaf.local2> (raw)

---
 Test/A05execution.ztst | 7 +++++++
 1 file changed, 7 insertions(+)

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

                 reply	other threads:[~2020-06-18  8:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200618083801.5493-1-danielsh@tarpaulin.shahaf.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).