summary refs log tree commit diff
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
parent46c448cf9b31f1d6bc3fdd86953550417cc78c75 (diff)
downloadzsh-0d3a786b7cff90868a586e5e3a491b82589a236d.tar.gz
zsh-0d3a786b7cff90868a586e5e3a491b82589a236d.tar.xz
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