about summary refs log tree commit diff stats
path: root/tests/test_command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2013-12-14 17:15:43 +0000
committerJames Booth <boothj5@gmail.com>2013-12-14 17:15:43 +0000
commit3e3786eb613ec869954e0bb9b5e4e630f15aaa63 (patch)
tree70113020af9d7777901708fb9cad29037188deaf /tests/test_command.c
parent0b3a9f5785e0e6e09c2760a6c6ab220bd08f80d4 (diff)
downloadprofani-tty-3e3786eb613ec869954e0bb9b5e4e630f15aaa63.tar.gz
Removed debug from tests
Diffstat (limited to 'tests/test_command.c')
-rw-r--r--tests/test_command.c7
1 files changed, 5 insertions, 2 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 <setjmp.h>
 #include <cmocka.h>
 #include <stdlib.h>
+#include <glib.h>
 
 #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);
 }