diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-08 11:49:04 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2016-08-08 12:16:58 +0200 |
commit | 5a86a16bdd14b6a4091671c4bfebc2e593cf1573 (patch) | |
tree | 3107c17ca7628a02e9d2b81964fc38fa9ae28469 /tests/x509dn.c | |
parent | a30a5359f9dd55e31d97925dfcf45f12ecaae37c (diff) | |
download | gnutls-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.c | 15 |
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]); |