diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-08 11:49:04 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-08 12:16:58 +0200 |
commit | 5a86a16bdd14b6a4091671c4bfebc2e593cf1573 (patch) | |
tree | 3107c17ca7628a02e9d2b81964fc38fa9ae28469 /tests/status-request-ok.c | |
parent | a30a5359f9dd55e31d97925dfcf45f12ecaae37c (diff) | |
download | gnutls-tests-error-checking.tar.gz |
tests: moved child status error checking code in utils.htests-error-checking
Diffstat (limited to 'tests/status-request-ok.c')
-rw-r--r-- | tests/status-request-ok.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/status-request-ok.c b/tests/status-request-ok.c index 293671dd71..50a4a9d4b7 100644 --- a/tests/status-request-ok.c +++ b/tests/status-request-ok.c @@ -324,15 +324,7 @@ void doit(void) close(fd[1]); client(fd[0]); 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]); server(fd[1]); |