summaryrefslogtreecommitdiff
path: root/tests/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils.h')
-rw-r--r--tests/utils.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/utils.h b/tests/utils.h
index d5409d661d..b905065c52 100644
--- a/tests/utils.h
+++ b/tests/utils.h
@@ -152,9 +152,12 @@ inline static void _check_wait_status(int status, unsigned sigonly)
if (WIFSIGNALED(status)) {
fail("Child died with signal %d\n", WTERMSIG(status));
} else {
- if (!sigonly)
+ if (!sigonly) {
+ if (WEXITSTATUS(status) == 77)
+ exit(77);
fail("Child died with status %d\n",
WEXITSTATUS(status));
+ }
}
}
#endif