Skip to content

Commit

Permalink
Fix ZTS killed processes detection
Browse files Browse the repository at this point in the history
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 openzfs#9003
  • Loading branch information
AttilaFueloep authored and tonyhutter committed Aug 23, 2019
1 parent 519675c commit a0730cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test-runner/include/logapi.shlib
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0730cc

Please sign in to comment.