summaryrefslogtreecommitdiff
path: root/tests/openpgp-auth.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-auth.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-auth.c')
-rw-r--r--tests/openpgp-auth.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/openpgp-auth.c b/tests/openpgp-auth.c
index bc79c223f2..1836f0777c 100644
--- a/tests/openpgp-auth.c
+++ b/tests/openpgp-auth.c
@@ -350,14 +350,7 @@ void doit(void)
if (done != child)
fail("who's that?! %d\n", done);
- if (WIFEXITED(status)) {
- if (WEXITSTATUS(status) != 0)
- fail("child exited with status %d\n", WEXITSTATUS(status));
- } else if (WIFSIGNALED(status))
- fail("child stopped by signal %d\n",
- WTERMSIG(status));
- else
- fail("child failed: %d\n", status);
+ check_wait_status(status);
}
}