diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-18 11:22:17 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-03-18 11:22:17 +0000 |
commit | 842cd8dbfb98b61af33b5fe481364c3cfbeaca04 (patch) | |
tree | d72a037e60a989ea2a5e71038e07b8e696e12856 /tests/check_jabber_util.c | |
parent | 00a0bc5cbed11bab2446267a9f3ad76666ceee75 (diff) |
Fixed a bug that caused full JIDs to get lost sometimes with the new way
of storing full JIDs belongong to a contact.
Diffstat (limited to 'tests/check_jabber_util.c')
-rw-r--r-- | tests/check_jabber_util.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/check_jabber_util.c b/tests/check_jabber_util.c index 47e1e1a0..bf6d3e60 100644 --- a/tests/check_jabber_util.c +++ b/tests/check_jabber_util.c @@ -83,6 +83,15 @@ 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 ) ); + + /* Fixing a bug in this branch that caused information to get lost when + removing the first full JID from a list. */ + jabber_buddy_add( ic, "bugtest@google.com/A" ); + jabber_buddy_add( ic, "bugtest@google.com/B" ); + jabber_buddy_add( ic, "bugtest@google.com/C" ); + fail_unless( jabber_buddy_remove( ic, "bugtest@google.com/A" ) ); + fail_unless( jabber_buddy_remove( ic, "bugtest@google.com/B" ) ); + fail_unless( jabber_buddy_remove( ic, "bugtest@google.com/C" ) ); } Suite *jabber_util_suite (void) |