From b36d4eec0b6016d5968885d71034df51bce491e8 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Wed, 6 Aug 2008 08:54:18 +0000 Subject: 25400: Rockys test for second part of trapreturn bug --- Test/C03traps.ztst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'Test/C03traps.ztst') diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index 92b17ce41..79a30d773 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -350,6 +350,7 @@ >trap >Working 0 + unsetopt DEBUG_BEFORE_CMD debug-trap-bug1() { setopt localtraps print "print bug file here" >bug-file @@ -388,6 +389,19 @@ >bug file here >EXIT hit + cat >zsh-trapreturn-bug2 <<-'HERE' + cmd='./fdasfsdafd' + [[ -x $cmd ]] && rm $cmd + set -o DEBUG_BEFORE_CMD + trap '[[ $? -ne 0 ]] && exit 0' DEBUG + $cmd # invalid command + # Failure + exit 10 + HERE + $ZTST_testdir/../Src/zsh -f ./zsh-trapreturn-bug2 +0: trapreturn handling bug is properly fixed +?./zsh-trapreturn-bug2:5: no such file or directory: ./fdasfsdafd + %clean rm -f TRAPEXIT -- cgit 1.4.1