summaryrefslogtreecommitdiff
path: root/tests/dn2.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/dn2.c')
-rw-r--r--tests/dn2.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/dn2.c b/tests/dn2.c
index de1ae6fba8..9b21690ec9 100644
--- a/tests/dn2.c
+++ b/tests/dn2.c
@@ -90,9 +90,7 @@ doit (void)
if (ret < 0)
fail ("x509_crt_print %d\n", ret);
- if (out.size == strlen (info) && strcmp (out.data, info) == 0)
- success ("comparison ok\n");
- else
+ if (out.size != strlen (info) || strcmp (out.data, info) != 0)
fail ("comparison fail (%d/%d)\nexpect: %s\n got: %.*s\n",
out.size, (int)strlen (info), info, out.size, out.data);
@@ -100,5 +98,5 @@ doit (void)
gnutls_global_deinit ();
gnutls_free (out.data);
- success ("done\n");
+ if (debug) success ("done\n");
}