From 2a4c8c27c600671a4352e4a8f737ca81465af7af Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 4 Nov 2008 09:51:21 +0000 Subject: 26006: remove dependence on system error message --- Test/C05debug.ztst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'Test') diff --git a/Test/C05debug.ztst b/Test/C05debug.ztst index b5515c90c..5cbf18a45 100644 --- a/Test/C05debug.ztst +++ b/Test/C05debug.ztst @@ -52,9 +52,15 @@ # Failure exit 10 HERE - $ZTST_testdir/../Src/zsh -f ./zsh-trapreturn-bug2 + $ZTST_testdir/../Src/zsh -f ./zsh-trapreturn-bug2 2>erroutput.dif + mystat=$? + ( + setopt extendedglob + print ${"$(< erroutput.dif)"%%:[^:]#: ./fdasfsdafd} + ) + (( mystat == 0 )) 0: trapreturn handling bug is properly fixed -?./zsh-trapreturn-bug2:5: no such file or directory: ./fdasfsdafd +>./zsh-trapreturn-bug2:5 fn() { setopt localtraps localoptions debugbeforecmd -- cgit 1.4.1