diff options
Diffstat (limited to 'tests/openpgp-auth2.c')
-rw-r--r-- | tests/openpgp-auth2.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/openpgp-auth2.c b/tests/openpgp-auth2.c index 11fb6d578b..5cfcac6b7e 100644 --- a/tests/openpgp-auth2.c +++ b/tests/openpgp-auth2.c @@ -254,15 +254,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); } gnutls_global_deinit(); |