diff options
author | Attila Fülöp <[email protected]> | 2019-07-10 20:44:52 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2019-07-10 11:44:52 -0700 |
commit | c3fba9091b1792755a0aac804f6ada1fe863c8b6 (patch) | |
tree | 50472db13421fffe9eb2a33385acf7f9d1e646b1 /tests/test-runner | |
parent | 02fad9260aaa95cb7eb6f6e89c5d85f77123582c (diff) |
Fix ZTS killed processes detection
log_neg_expect was using the wrong exit status to detect if a process
got killed by SIGSEGV or SIGBUS, resulting in false positives.
Reviewed-by: loli10K <[email protected]>
Reviewed by: John Kennedy <[email protected]>
Reviewed by: Brian Behlendorf <[email protected]>
Signed-off-by: Attila Fülöp <[email protected]>
Closes #9003
Diffstat (limited to 'tests/test-runner')
-rw-r--r-- | tests/test-runner/include/logapi.shlib | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-runner/include/logapi.shlib b/tests/test-runner/include/logapi.shlib index 32fc00616..cd7982a94 100644 --- a/tests/test-runner/include/logapi.shlib +++ b/tests/test-runner/include/logapi.shlib @@ -198,12 +198,12 @@ function log_neg_expect elif (( $status == 127 )); then print -u2 $($out) _printerror "$@" "unexpectedly exited $status (File not found)" - # bus error - core dump - elif (( $status == 138 )); then + # bus error - core dump (256+signal, SIGBUS=7) + elif (( $status == 263 )); then print -u2 $($out) _printerror "$@" "unexpectedly exited $status (Bus Error)" - # segmentation violation - core dump - elif (( $status == 139 )); then + # segmentation violation - core dump (256+signal, SIGSEGV=11) + elif (( $status == 267 )); then print -u2 $($out) _printerror "$@" "unexpectedly exited $status (SEGV)" else |