1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-19 03:31:14 +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>
* 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
# 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