Added statuses settings to prefs output
This commit is contained in:
@@ -20,7 +20,7 @@ void console_doesnt_show_online_presence_when_set_none(void **state)
|
||||
roster_init();
|
||||
roster_add("test1@server", "bob", NULL, "both", FALSE);
|
||||
Resource *resource = resource_new("resource", RESOURCE_ONLINE, NULL, 10, "caps");
|
||||
|
||||
|
||||
handle_contact_online("test1@server", resource, NULL);
|
||||
|
||||
roster_clear();
|
||||
@@ -37,9 +37,9 @@ void console_shows_online_presence_when_set_online(void **state)
|
||||
PContact contact = roster_get_contact("test1@server");
|
||||
|
||||
expect_cons_show_contact_online(contact, resource, NULL);
|
||||
|
||||
|
||||
handle_contact_online("test1@server", resource, NULL);
|
||||
|
||||
|
||||
roster_clear();
|
||||
}
|
||||
|
||||
@@ -54,9 +54,9 @@ void console_shows_online_presence_when_set_all(void **state)
|
||||
PContact contact = roster_get_contact("test1@server");
|
||||
|
||||
expect_cons_show_contact_online(contact, resource, NULL);
|
||||
|
||||
|
||||
handle_contact_online("test1@server", resource, NULL);
|
||||
|
||||
|
||||
roster_clear();
|
||||
}
|
||||
|
||||
@@ -68,7 +68,7 @@ void console_doesnt_show_dnd_presence_when_set_none(void **state)
|
||||
roster_init();
|
||||
roster_add("test1@server", "bob", NULL, "both", FALSE);
|
||||
Resource *resource = resource_new("resource", RESOURCE_DND, NULL, 10, "caps");
|
||||
|
||||
|
||||
handle_contact_online("test1@server", resource, NULL);
|
||||
|
||||
roster_clear();
|
||||
@@ -82,7 +82,7 @@ void console_doesnt_show_dnd_presence_when_set_online(void **state)
|
||||
roster_init();
|
||||
roster_add("test1@server", "bob", NULL, "both", FALSE);
|
||||
Resource *resource = resource_new("resource", RESOURCE_DND, NULL, 10, "caps");
|
||||
|
||||
|
||||
handle_contact_online("test1@server", resource, NULL);
|
||||
|
||||
roster_clear();
|
||||
@@ -99,8 +99,8 @@ void console_shows_dnd_presence_when_set_all(void **state)
|
||||
PContact contact = roster_get_contact("test1@server");
|
||||
|
||||
expect_cons_show_contact_online(contact, resource, NULL);
|
||||
|
||||
|
||||
handle_contact_online("test1@server", resource, NULL);
|
||||
|
||||
|
||||
roster_clear();
|
||||
}
|
||||
|
||||
@@ -414,7 +414,7 @@ int main(int argc, char* argv[]) {
|
||||
PROF_RUN_TESTS(cmd_statuses_tests);
|
||||
PROF_RUN_TESTS(preferences_tests);
|
||||
PROF_RUN_TESTS(server_events_tests);
|
||||
|
||||
|
||||
fflush(stdout);
|
||||
dup2(bak, 1);
|
||||
close(bak);
|
||||
|
||||
Reference in New Issue
Block a user