aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test-runner/include/logapi.shlib12
1 files changed, 3 insertions, 9 deletions
diff --git a/tests/test-runner/include/logapi.shlib b/tests/test-runner/include/logapi.shlib
index 86a345b7a..334a04532 100644
--- a/tests/test-runner/include/logapi.shlib
+++ b/tests/test-runner/include/logapi.shlib
@@ -165,26 +165,20 @@ function log_mustnot_expect
(( $? != 0 )) && log_fail
}
-# Exit status encoding is platform-dependent
+# Signal numbers are platform-dependent
case $(uname) in
Darwin|FreeBSD)
- EXIT_SIGNAL=128
SIGBUS=10
SIGSEGV=11
;;
-illumos)
- EXIT_SIGNAL=256
- SIGBUS=7
- SIGSEGV=11
- ;;
-Linux|*)
- EXIT_SIGNAL=128
+illumos|Linux|*)
SIGBUS=7
SIGSEGV=11
;;
esac
EXIT_SUCCESS=0
EXIT_NOTFOUND=127
+EXIT_SIGNAL=256
EXIT_SIGBUS=$((EXIT_SIGNAL + SIGBUS))
EXIT_SIGSEGV=$((EXIT_SIGNAL + SIGSEGV))