diff options
| author | Bart Schaefer <barts@users.sourceforge.net> | 2005-05-01 01:23:54 +0000 |
|---|---|---|
| committer | Bart Schaefer <barts@users.sourceforge.net> | 2005-05-01 01:23:54 +0000 |
| commit | 5ade42c05eaef75d6df17780f6d213192cdcd8df (patch) | |
| tree | 07bb908eec8d5540e0e9e067572571d49de8ed68 /Test | |
| parent | 21197: Fix LOCAL_TRAPS inside another trap (diff) | |
| download | zsh-5ade42c05eaef75d6df17780f6d213192cdcd8df.tar zsh-5ade42c05eaef75d6df17780f6d213192cdcd8df.tar.gz zsh-5ade42c05eaef75d6df17780f6d213192cdcd8df.tar.bz2 zsh-5ade42c05eaef75d6df17780f6d213192cdcd8df.tar.lz zsh-5ade42c05eaef75d6df17780f6d213192cdcd8df.tar.xz zsh-5ade42c05eaef75d6df17780f6d213192cdcd8df.tar.zst zsh-5ade42c05eaef75d6df17780f6d213192cdcd8df.zip | |
21215: clean up after autoloaded trap test
Diffstat (limited to 'Test')
| -rw-r--r-- | Test/C03traps.ztst | 8 |
1 files changed, 6 insertions, 2 deletions
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 |
