1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-03 08:11:03 +02:00

21215: clean up after autoloaded trap test

This commit is contained in:
Bart Schaefer 2005-05-01 01:23:43 +00:00
parent 06af163bbd
commit 36136b9671
2 changed files with 11 additions and 2 deletions

View file

@ -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> 2005-04-27 Peter Stephenson <pws@csr.com>
* 21197: Src/exec.c, Src/signals.c: LOCAL_TRAPS didn't restore * 21197: Src/exec.c, Src/signals.c: LOCAL_TRAPS didn't restore

View file

@ -228,14 +228,14 @@
# Autoloaded traps are horrid, but unfortunately people expect # Autoloaded traps are horrid, but unfortunately people expect
# them to work if we support them. # them to work if we support them.
echo "print Running exit trap" >TRAPEXIT echo "print Running exit trap" >TRAPEXIT
$ZTST_testdir/../Src/zsh -fc ' ${${ZTST_exe##[^/]*}:-$ZTST_testdir/$ZTST_exe} -fc '
fpath=(. $fpath) fpath=(. $fpath)
autoload TRAPEXIT autoload TRAPEXIT
print "Exiting, attempt 1" print "Exiting, attempt 1"
exit exit
print "What?" print "What?"
' '
$ZTST_testdir/../Src/zsh -fc ' ${${ZTST_exe##[^/]*}:-$ZTST_testdir/$ZTST_exe} -fc '
fpath=(. $fpath) fpath=(. $fpath)
autoload TRAPEXIT; autoload TRAPEXIT;
fn() { print Some function } fn() { print Some function }
@ -249,3 +249,7 @@
>Some function >Some function
>Exiting, attempt 2 >Exiting, attempt 2
>Running exit trap >Running exit trap
%clean
rm -f TRAPEXIT