summaryrefslogtreecommitdiff
path: root/tests/custom-urls-override.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-08 11:49:04 +0200
committerGitLab <gitlab@gitlab.com>2016-08-09 06:01:35 +0000
commit2124f87dcd1acee4e2e04702469e16bc8da03edb (patch)
tree7d4c2910ca9a20d216d97c32328ece060f8340a8 /tests/custom-urls-override.c
parentbcbf2dd69715c5fba7c760406f644a27d5dbcc64 (diff)
downloadgnutls-2124f87dcd1acee4e2e04702469e16bc8da03edb.tar.gz
tests: moved child status error checking code in utils.h
Diffstat (limited to 'tests/custom-urls-override.c')
-rw-r--r--tests/custom-urls-override.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/custom-urls-override.c b/tests/custom-urls-override.c
index cbf1e7ca10..2209fe8edd 100644
--- a/tests/custom-urls-override.c
+++ b/tests/custom-urls-override.c
@@ -265,15 +265,7 @@ static void ch_handler(int sig)
{
int status;
wait(&status);
- 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));
- terminate();
- }
+ check_wait_status(status);
return;
}