mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 15:01:21 +02:00
21215: clean up after autoloaded trap test
This commit is contained in:
parent
2c208c7743
commit
5ade42c05e
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user