summaryrefslogtreecommitdiff
path: root/tests/mini-dtls-pthread.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-08 11:49:04 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-08-08 12:16:58 +0200
commit5a86a16bdd14b6a4091671c4bfebc2e593cf1573 (patch)
tree3107c17ca7628a02e9d2b81964fc38fa9ae28469 /tests/mini-dtls-pthread.c
parenta30a5359f9dd55e31d97925dfcf45f12ecaae37c (diff)
downloadgnutls-tests-error-checking.tar.gz
tests: moved child status error checking code in utils.htests-error-checking
Diffstat (limited to 'tests/mini-dtls-pthread.c')
-rw-r--r--tests/mini-dtls-pthread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/mini-dtls-pthread.c b/tests/mini-dtls-pthread.c
index 64cbba50f5..77012553bc 100644
--- a/tests/mini-dtls-pthread.c
+++ b/tests/mini-dtls-pthread.c
@@ -376,9 +376,7 @@ void run(unsigned do_thread)
close(fd[1]);
client(fd[0], do_thread);
wait(&status);
- if (WEXITSTATUS(status) != 0)
- fail("Child died with status %d\n",
- WEXITSTATUS(status));
+ check_wait_status(status);
} else {
close(fd[0]);
server(fd[1], 1-do_thread);