diff --git a/tests/functionaltests/proftest.c b/tests/functionaltests/proftest.c
index d064a349..36eba668 100644
--- a/tests/functionaltests/proftest.c
+++ b/tests/functionaltests/proftest.c
@@ -247,7 +247,18 @@ prof_output_glob(char *text)
void
prof_connect_with_roster(char *roster)
{
- stbbr_for_query("jabber:iq:roster", roster);
+ GString *roster_str = g_string_new(
+ ""
+ ""
+ );
+ g_string_append(roster_str, roster);
+ g_string_append(roster_str,
+ ""
+ ""
+ );
+
+ stbbr_for_query("jabber:iq:roster", roster_str->str);
+ g_string_free(roster_str, TRUE);
stbbr_for_id("prof_presence_1",
""
@@ -270,11 +281,7 @@ void
prof_connect(void)
{
prof_connect_with_roster(
- ""
- ""
- "- "
- "
- "
- "
"
- ""
+ "- "
+ "
- "
);
}
diff --git a/tests/functionaltests/test_roster.c b/tests/functionaltests/test_roster.c
index ba1c851a..7a3f5656 100644
--- a/tests/functionaltests/test_roster.c
+++ b/tests/functionaltests/test_roster.c
@@ -67,12 +67,8 @@ void
sends_remove_item(void **state)
{
prof_connect_with_roster(
- ""
- ""
- "
- "
- "
- "
- "
"
- ""
+ "- "
+ "
- "
);
stbbr_for_query("jabber:iq:roster",
@@ -100,11 +96,7 @@ void
sends_nick_change(void **state)
{
prof_connect_with_roster(
- ""
- ""
- "
- "
- "
"
- ""
+ "- "
);
prof_input("/roster nick buddy1@localhost Buddy1");