diff options
author | Daniel Shahaf <danielsh@apache.org> | 2019-12-31 01:52:32 +0000 |
---|---|---|
committer | Daniel Shahaf <danielsh@apache.org> | 2020-01-01 13:55:39 +0000 |
commit | 9432d9b1cf8a9388eab05c59abf641c2b17fa0d1 (patch) | |
tree | 259d5a61b2e44dee7a04f4f1c3752180e34b43ce /Test/C03traps.ztst | |
parent | 7e2c80fcd5a2aeae299f55e392e00275943f1562 (diff) | |
download | zsh-9432d9b1cf8a9388eab05c59abf641c2b17fa0d1.tar.gz zsh-9432d9b1cf8a9388eab05c59abf641c2b17fa0d1.tar.xz zsh-9432d9b1cf8a9388eab05c59abf641c2b17fa0d1.zip |
45169/0002 (tweaked for trailing newlines): Add an expected-to-fail test for workers/44007.
Diffstat (limited to 'Test/C03traps.ztst')
-rw-r--r-- | Test/C03traps.ztst | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index 4aebd92b7..e661aabd5 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -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' 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 rm -f TRAPEXIT |