about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2005-05-01 01:23:43 +0000
committerBart Schaefer <barts@users.sourceforge.net>2005-05-01 01:23:43 +0000
commit36136b9671b381162ff24630dd2ff0fe977a151c (patch)
tree50fda23c71bf8c5c0b61fbcca5d62144fcd0f5b2 /Test
parent06af163bbd26dc33eb35c5003f4a2118bb2ba3f6 (diff)
downloadzsh-36136b9671b381162ff24630dd2ff0fe977a151c.tar.gz
zsh-36136b9671b381162ff24630dd2ff0fe977a151c.tar.xz
zsh-36136b9671b381162ff24630dd2ff0fe977a151c.zip
21215: clean up after autoloaded trap test
Diffstat (limited to 'Test')
-rw-r--r--Test/C03traps.ztst8
1 files changed, 6 insertions, 2 deletions
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst
index f75c47c4d..b7649856e 100644
--- a/Test/C03traps.ztst
+++ b/Test/C03traps.ztst
@@ -228,14 +228,14 @@
 # Autoloaded traps are horrid, but unfortunately people expect
 # them to work if we support them.
   echo "print Running exit trap" >TRAPEXIT
-  $ZTST_testdir/../Src/zsh -fc '
+  ${${ZTST_exe##[^/]*}:-$ZTST_testdir/$ZTST_exe} -fc '
     fpath=(. $fpath)
     autoload TRAPEXIT
     print "Exiting, attempt 1"
     exit
     print "What?"
   '
-  $ZTST_testdir/../Src/zsh -fc '
+  ${${ZTST_exe##[^/]*}:-$ZTST_testdir/$ZTST_exe} -fc '
     fpath=(. $fpath)
     autoload TRAPEXIT;
     fn() { print Some function }
@@ -249,3 +249,7 @@
 >Some function
 >Exiting, attempt 2
 >Running exit trap
+
+%clean
+
+  rm -f TRAPEXIT