summaryrefslogtreecommitdiff
path: root/tests/openpgp-callback.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/openpgp-callback.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/openpgp-callback.c')
-rw-r--r--tests/openpgp-callback.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/tests/openpgp-callback.c b/tests/openpgp-callback.c
index d93c283d3d..c3f2c4cb17 100644
--- a/tests/openpgp-callback.c
+++ b/tests/openpgp-callback.c
@@ -467,20 +467,7 @@ void doit(void)
/* parent */
client(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
server(sockets[1]);
}