summaryrefslogtreecommitdiff
path: root/tests/fallback-scsv.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fallback-scsv.c')
-rw-r--r--tests/fallback-scsv.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/fallback-scsv.c b/tests/fallback-scsv.c
index 80b918c6b1..0774e403c2 100644
--- a/tests/fallback-scsv.c
+++ b/tests/fallback-scsv.c
@@ -324,14 +324,7 @@ static void start(const char *server_prio, const char *cli_prio, unsigned expect
close(fd[1]);
server(fd[0], server_prio, expect_fail);
waitpid(child, &status, 0);
- if (WEXITSTATUS(status) != 0 ||
- (WIFSIGNALED(status) && WTERMSIG(status) == SIGSEGV)) {
- if (WIFSIGNALED(status))
- fail("Child died with sigsegv\n");
- else
- fail("Child died with status %d\n",
- WEXITSTATUS(status));
- }
+ check_wait_status(status);
} else {
close(fd[0]);
client(fd[1], cli_prio, expect_fail);