mirror of
https://github.com/zsh-users/zsh
synced 2024-10-14 11:53:24 +00:00
45169/0002 (tweaked for trailing newlines): Add an expected-to-fail test for workers/44007.
This commit is contained in:
parent
7e2c80fcd5
commit
9432d9b1cf
|
@ -1,5 +1,9 @@
|
||||||
2020-01-01 Daniel Shahaf <danielsh@apache.org>
|
2020-01-01 Daniel Shahaf <danielsh@apache.org>
|
||||||
|
|
||||||
|
* 45169/0002 (tweaked for trailing newlines): Etc/BUGS,
|
||||||
|
Test/C03traps.ztst: Add an expected-to-fail test for
|
||||||
|
workers/44007.
|
||||||
|
|
||||||
* 45169/0001: Test/B01cd.ztst, Test/ztst.zsh,
|
* 45169/0001: Test/B01cd.ztst, Test/ztst.zsh,
|
||||||
Util/ztst-syntax.vim: In the test suite, allow test cases to
|
Util/ztst-syntax.vim: In the test suite, allow test cases to
|
||||||
be marked as expected to fail.
|
be marked as expected to fail.
|
||||||
|
|
14
Etc/BUGS
14
Etc/BUGS
|
@ -26,16 +26,6 @@ skipped when STTY=... is set for that command
|
||||||
41203 and others: Make it easier to maintain C modules out of tree.
|
41203 and others: Make it easier to maintain C modules out of tree.
|
||||||
(May require defining a stable API for modules, see 41254)
|
(May require defining a stable API for modules, see 41254)
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
44007 - Martijn - exit in trap executes rest of function (prints "fn2")
|
44007 - Martijn - exit in trap executes rest of function
|
||||||
[[[
|
See test case in Test/C03traps.ztst.
|
||||||
trap 'echo $1; exit; echo $2' USR1
|
|
||||||
fn() {
|
|
||||||
echo fn1
|
|
||||||
kill -USR1 $$
|
|
||||||
echo fn2
|
|
||||||
}
|
|
||||||
echo out1
|
|
||||||
fn trap1 trap2
|
|
||||||
echo out2
|
|
||||||
]]]
|
|
||||||
------------------------------------------------------------------------
|
------------------------------------------------------------------------
|
||||||
|
|
|
@ -881,6 +881,23 @@ F:Must be tested with a top-level script rather than source or function
|
||||||
$ZTST_testdir/../Src/zsh -f <<<'fn() { exit 0; }; trap fn EXIT; false'
|
$ZTST_testdir/../Src/zsh -f <<<'fn() { exit 0; }; trap fn EXIT; false'
|
||||||
0:Explicit exit status overrides implicit: script-like code path
|
0:Explicit exit status overrides implicit: script-like code path
|
||||||
|
|
||||||
|
$ZTST_testdir/../Src/zsh -f <<<$'
|
||||||
|
trap \'echo $1; exit; echo $2\' USR1
|
||||||
|
fn() {
|
||||||
|
echo fn1
|
||||||
|
kill -s USR1 $$
|
||||||
|
echo fn2
|
||||||
|
}
|
||||||
|
echo out1
|
||||||
|
fn trap1 trap2
|
||||||
|
echo out2
|
||||||
|
'
|
||||||
|
-f:(workers/44007) function execution continues after 'exit' in trap
|
||||||
|
>out1
|
||||||
|
>fn1
|
||||||
|
>trap1
|
||||||
|
# As of 5.7.1-test-2, the output was "out1 fn1 trap1 fn2" (on separate lines).
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
|
|
||||||
rm -f TRAPEXIT
|
rm -f TRAPEXIT
|
||||||
|
|
Loading…
Reference in a new issue