summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2018-10-10 11:17:58 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2018-10-10 11:17:58 +0100
commit0d3a786b7cff90868a586e5e3a491b82589a236d (patch)
tree80a33e6551153c3ec43e15bdac7aca33c896d560 /Test
parentMissed ChangeLog from previous commit (diff)
downloadzsh-0d3a786b7cff90868a586e5e3a491b82589a236d.tar
zsh-0d3a786b7cff90868a586e5e3a491b82589a236d.tar.gz
zsh-0d3a786b7cff90868a586e5e3a491b82589a236d.tar.bz2
zsh-0d3a786b7cff90868a586e5e3a491b82589a236d.tar.lz
zsh-0d3a786b7cff90868a586e5e3a491b82589a236d.tar.xz
zsh-0d3a786b7cff90868a586e5e3a491b82589a236d.tar.zst
zsh-0d3a786b7cff90868a586e5e3a491b82589a236d.zip
43669: ensure explicit exit status is used over implicit
Diffstat (limited to 'Test')
-rw-r--r--Test/C03traps.ztst3
1 files changed, 3 insertions, 0 deletions
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