diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2022-05-12 15:34:46 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2022-05-12 16:55:47 -0400 |
commit | 6494eeb9aa03d37ebe3a00a0756db2c4c9d6a065 (patch) | |
tree | ab43408938fc543558d900415b86b2fe0a2a3b22 /tests.sh | |
parent | 46f2146bc3091fb18eee5f8e11cc791ed8d57be3 (diff) | |
download | bfs-6494eeb9aa03d37ebe3a00a0756db2c4c9d6a065.tar.xz |
tests: Exit immediately if fail() detects a crash
Diffstat (limited to 'tests.sh')
-rwxr-xr-x | tests.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1118,8 +1118,8 @@ function fail() { local STATUS="$?" if ((STATUS > 125)); then - return "$STATUS" - elif ((STATUS)); then + exit "$STATUS" + elif ((STATUS > 0)); then return 0 else return 1 |