summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2008-12-10 13:27:31 +0100
committerSimon Josefsson <simon@josefsson.org>2008-12-10 13:27:31 +0100
commit5f14a6f246f55355b06f5f1dc45138c6e3090df8 (patch)
tree1a680750a3db6b1d920a5fb950b8ce47cdbb3e68
parent071beb6e8038bf5ffc1d63eb0b249a37ffa80ed3 (diff)
downloadgnutls-5f14a6f246f55355b06f5f1dc45138c6e3090df8.tar.gz
Don't fail on expect errors, to allow more information to be collected.
-rw-r--r--tests/chainverify.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/chainverify.c b/tests/chainverify.c
index 7b6746a9af..39145d775d 100644
--- a/tests/chainverify.c
+++ b/tests/chainverify.c
@@ -378,6 +378,7 @@ tls_log_func (int level, const char *str)
int
main (int argc, char *argv[])
{
+ int exit_val = 0;
size_t i;
int ret;
@@ -445,10 +446,13 @@ main (int argc, char *argv[])
i, j, gnutls_strerror (ret));
if (verify_status != chains[i].expected_verify_result)
- error (EXIT_FAILURE, 0, "verify_status: %d expected: %d",
- verify_status, chains[i].expected_verify_result);
-
- printf ("done\n");
+ {
+ error (0, 0, "verify_status: %d expected: %d",
+ verify_status, chains[i].expected_verify_result);
+ exit_val = 1;
+ }
+ else
+ printf ("done\n");
printf ("\tCleanup...");
gnutls_x509_crt_deinit (ca);
@@ -460,5 +464,5 @@ main (int argc, char *argv[])
gnutls_global_deinit ();
- return 0;
+ return exit_val;
}