From 2124f87dcd1acee4e2e04702469e16bc8da03edb Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Mon, 8 Aug 2016 11:49:04 +0200 Subject: tests: moved child status error checking code in utils.h --- tests/resume.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tests/resume.c') diff --git a/tests/resume.c b/tests/resume.c index ed4f8aa6d2..21455a4f2d 100644 --- a/tests/resume.c +++ b/tests/resume.c @@ -693,8 +693,7 @@ void doit(void) server(server_sds, &resume_tests[i]); waitpid(child, &status, 0); - if (WEXITSTATUS(status) != 0 || (WIFSIGNALED(status) && WTERMSIG(status) == SIGSEGV)) - exit(1); + check_wait_status(status); global_stop(); } else { for (j = 0; j < SESSIONS; j++) -- cgit v1.2.1