summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2009-08-12 10:42:49 +0200
committerSimon Josefsson <simon@josefsson.org>2009-08-12 10:42:49 +0200
commit52da1b3723b4c85839f5a777a2db4839c25eea42 (patch)
treedae58a48e129e80b41969867804975d76547b51b /tests
parentaa2fe9b2ca6647301094508db9e57dcbad6a7ba5 (diff)
downloadgnutls-52da1b3723b4c85839f5a777a2db4839c25eea42.tar.gz
Fix logic.
Diffstat (limited to 'tests')
-rw-r--r--tests/hostname-check.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/hostname-check.c b/tests/hostname-check.c
index 9876cf2b3a..4253fe7312 100644
--- a/tests/hostname-check.c
+++ b/tests/hostname-check.c
@@ -782,9 +782,9 @@ doit (void)
ret = gnutls_x509_crt_check_hostname (cert, "foo.example.org");
if (ret)
- success ("Hostname incorrectly matches (%d)\n", ret);
+ fail ("Hostname incorrectly matches (%d)\n", ret);
else
- fail ("Hostname correctly does not match (%d)\n", ret);
+ success ("Hostname correctly does not match (%d)\n", ret);
ret = gnutls_x509_crt_check_hostname (cert, "bar.example.org");
if (ret)