about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Test/C03traps.ztst8
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1efbeaa52..4cfde598b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-04-30  Bart Schaefer  <schaefer@zsh.org>
+
+	* 21215: Test/C03traps.ztst: clean up TRAPEXIT file left behind by
+	autoloaded trap test.
+
 2005-04-27  Peter Stephenson  <pws@csr.com>
 
 	* 21197: Src/exec.c, Src/signals.c: LOCAL_TRAPS didn't restore
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst
index b9d909761..ee4c1c069 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