diff options
Diffstat (limited to 't/self-check-exit.tap')
-rwxr-xr-x | t/self-check-exit.tap | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/t/self-check-exit.tap b/t/self-check-exit.tap index 029b17424..1d3c0202b 100755 --- a/t/self-check-exit.tap +++ b/t/self-check-exit.tap @@ -65,18 +65,7 @@ for sig in 1 2 13 15; do # Reset default SIGINT handler as portably as possible. trap 2 || trap - 2 fi - if test x"$sh_errexit_works" = x"yes"; then - # The exit trap should turn into an hard errors any failure - # caused by signals. - command_ok_ "kill -$sig" test $rc -eq 99 - else - # The exit trap is not installed, so that the shell should exit - # with status 128+n when receiving signal number n. But don't - # be too strict in the check, as POSIX only says that "The exit - # status of a command that terminated because it received a - # signal shall be reported as greater than 128". - command_ok_ "kill -$sig" test $rc -gt 128 - fi + command_ok_ "kill -$sig" test $rc -eq 99 unset rc done |