summaryrefslogtreecommitdiff
path: root/tests/custom-urls.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/custom-urls.c')
-rw-r--r--tests/custom-urls.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/custom-urls.c b/tests/custom-urls.c
index 41e4bc0234..0827d3c2d8 100644
--- a/tests/custom-urls.c
+++ b/tests/custom-urls.c
@@ -264,15 +264,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;
}