From 5ade42c05eaef75d6df17780f6d213192cdcd8df Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sun, 1 May 2005 01:23:54 +0000 Subject: 21215: clean up after autoloaded trap test --- Test/C03traps.ztst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Test/C03traps.ztst') 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 -- cgit 1.4.1