summaryrefslogtreecommitdiff
path: root/tests/x509dn.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/x509dn.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/x509dn.c')
-rw-r--r--tests/x509dn.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/x509dn.c b/tests/x509dn.c
index 4263265bdc..f38e5cc76a 100644
--- a/tests/x509dn.c
+++ b/tests/x509dn.c
@@ -479,20 +479,7 @@ void doit(void)
close(sockets[1]);
server(sockets[0]);
wait(&status);
-
-#if defined WIFEXITED && defined WEXITSTATUS
- if (WIFEXITED(status) && WEXITSTATUS(status)) {
- fail("server: client failed with exit status %d\n",
- WEXITSTATUS(status));
- }
-#endif
-
-#if defined WIFSIGNALED && defined WTERMSIG
- if (WIFSIGNALED(status)) {
- fail("server: client failed with fatal signal %d\n", WTERMSIG(status));
- }
-#endif
-
+ check_wait_status(status);
} else {
close(sockets[0]);
client(sockets[1]);