From 0d3a786b7cff90868a586e5e3a491b82589a236d Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Wed, 10 Oct 2018 11:17:58 +0100
Subject: 43669: ensure explicit exit status is used over implicit
---
Test/C03traps.ztst | 3 +++
1 file changed, 3 insertions(+)
(limited to 'Test')
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst
index bab0b0a0c..57daf8ddf 100644
--- a/Test/C03traps.ztst
+++ b/Test/C03traps.ztst
@@ -872,6 +872,9 @@ F:Must be tested with a top-level script rather than source or function
$ZTST_testdir/../Src/zsh -fc 'fn() { exit 13; }; trap fn EXIT'
13:Explicit exit in exit trap overrides implicit exit status
+ $ZTST_testdir/../Src/zsh -fc 'fn() { exit 0; }; trap fn EXIT; false'
+0:Explicit exit status 0 in exit trap overrides implicit non-zero status
+
%clean
rm -f TRAPEXIT
--
cgit 1.4.1