From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26818 invoked from network); 18 Jun 2020 08:39:06 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 18 Jun 2020 08:39:06 -0000 Received: (qmail 27176 invoked by alias); 18 Jun 2020 08:38:55 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 46067 Received: (qmail 25160 invoked by uid 1010); 18 Jun 2020 08:38:55 -0000 X-Qmail-Scanner-Diagnostics: from out3-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25842. spamassassin: 3.4.4. Clear:RC:0(66.111.4.27):SA:0(-2.6/5.0):. Processed in 4.60894 secs); 18 Jun 2020 08:38:55 -0000 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudejgedgtdeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgogfeguddtqddvjeculdegtddmnecujfgurhephf fvufffkffoggfgsedtkedttdertddtnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghf uceougdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrh hnpeffhfegtedtueekuefhuddvjeevfedtkeetjeetvdfhhfegkeevgfevtdelffegfeen ucfkphepjeelrddujeeirdefledrieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrg hrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: From: Daniel Shahaf To: zsh-workers@zsh.org Subject: [PATCH] Add a unit test for workers/46060. Date: Thu, 18 Jun 2020 08:38:02 +0000 Message-Id: <20200618083801.5493-1-danielsh@tarpaulin.shahaf.local2> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Qmail-Scanner-2.11: added fake Content-Type header Content-Type: text/plain --- 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