summaryrefslogtreecommitdiff
path: root/tests/mini-server-name.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mini-server-name.c')
-rw-r--r--tests/mini-server-name.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/mini-server-name.c b/tests/mini-server-name.c
index 42927d0130..bfd46d5e62 100644
--- a/tests/mini-server-name.c
+++ b/tests/mini-server-name.c
@@ -328,15 +328,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;
}