aboutsummaryrefslogtreecommitdiffstats
path: root/tests/check_jabber_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/check_jabber_util.c')
-rw-r--r--tests/check_jabber_util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/check_jabber_util.c b/tests/check_jabber_util.c
index 43180fce..e4d4533a 100644
--- a/tests/check_jabber_util.c
+++ b/tests/check_jabber_util.c
@@ -36,7 +36,7 @@ static void check_buddy_add(int l)
fail_unless(jabber_buddy_by_jid(ic, "WILMER@GAAST.NET/BitlBee", GET_BUDDY_EXACT) == budw1);
fail_unless(jabber_buddy_by_jid(ic, "wilmer@GAAST.NET/BitlBee", GET_BUDDY_CREAT) == budw1);
- fail_unless(jabber_buddy_by_jid(ic, "wilmer@gaast.net", GET_BUDDY_EXACT));
+ fail_unless(jabber_buddy_by_jid(ic, "wilmer@gaast.net", GET_BUDDY_EXACT) != NULL);
fail_unless(jabber_buddy_by_jid(ic, "WILMER@gaast.net", 0) == budw3);
/* Check O_FIRST and see if it's indeed the first item from the list. */
@@ -82,7 +82,7 @@ static void check_buddy_add(int l)
fail_if(jabber_buddy_remove(ic, "nekkid@lamejab.net/Illegal"));
fail_unless(jabber_buddy_remove(ic, "nekkid@lamejab.net"));
- fail_if(jabber_buddy_by_jid(ic, "nekkid@lamejab.net", 0));
+ fail_if(jabber_buddy_by_jid(ic, "nekkid@lamejab.net", 0) != NULL);
/* Fixing a bug in this branch that caused information to get lost when
removing the first full JID from a list. */