about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-11-04 09:51:21 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-11-04 09:51:21 +0000
commit2a4c8c27c600671a4352e4a8f737ca81465af7af (patch)
treebc777648672757b0ba3cf2fdd0410cb16773868f /Test
parent3e3f31778cc82cffb1d8cdd5f34ebeb37b816027 (diff)
downloadzsh-2a4c8c27c600671a4352e4a8f737ca81465af7af.tar.gz
zsh-2a4c8c27c600671a4352e4a8f737ca81465af7af.tar.xz
zsh-2a4c8c27c600671a4352e4a8f737ca81465af7af.zip
26006: remove dependence on system error message
Diffstat (limited to 'Test')
-rw-r--r--Test/C05debug.ztst10
1 files changed, 8 insertions, 2 deletions
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