From 3e3786eb613ec869954e0bb9b5e4e630f15aaa63 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sat, 14 Dec 2013 17:15:43 +0000 Subject: Removed debug from tests --- tests/test_command.c | 7 +++++-- tests/test_roster_list.c | 4 ---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/test_command.c b/tests/test_command.c index 13738032..d553f7e5 100644 --- a/tests/test_command.c +++ b/tests/test_command.c @@ -3,6 +3,7 @@ #include #include #include +#include #include "xmpp/xmpp.h" #include "ui/ui.h" @@ -10,11 +11,13 @@ void cmd_rooms_shows_message_when_not_connected(void **state) { + CommandHelp *help = malloc(sizeof(CommandHelp)); will_return(jabber_get_connection_status, JABBER_DISCONNECTED); expect_string(cons_show, msg, "You are not currently connected."); - CommandHelp *help = malloc(sizeof(CommandHelp)); + + gboolean result = _cmd_rooms(NULL, *help); - assert_true(_cmd_rooms(NULL, *help)); + assert_true(result); free(help); } diff --git a/tests/test_roster_list.c b/tests/test_roster_list.c index b65d9f83..4a78d877 100644 --- a/tests/test_roster_list.c +++ b/tests/test_roster_list.c @@ -20,13 +20,9 @@ void empty_list_when_none_added(void **state) void contains_one_element(void **state) { roster_init(); - printf("0\n"); roster_add("James", NULL, NULL, NULL, FALSE, TRUE); - printf("1\n"); GSList *list = roster_get_contacts(); - printf("2\n"); assert_int_equal(1, g_slist_length(list)); - printf("3\n"); roster_free(); } -- cgit 1.4.1-2-gfad0