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.c9
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)