about summary refs log tree commit diff stats
path: root/stabbertests/proftest.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-05-24 04:13:28 +0100
committerJames Booth <boothj5@gmail.com>2015-05-24 04:13:28 +0100
commit80665ea0514a6a9b93af7858a3db1467091f80df (patch)
tree4637310015e3389135f5edd46d767f28eea46f71 /stabbertests/proftest.c
parent2241473ee62b7d5d60d20ef0c264e6080cbba8db (diff)
downloadprofani-tty-80665ea0514a6a9b93af7858a3db1467091f80df.tar.gz
Added rooms iq test
Diffstat (limited to 'stabbertests/proftest.c')
-rw-r--r--stabbertests/proftest.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/stabbertests/proftest.c b/stabbertests/proftest.c
index e8409907..96c0cb69 100644
--- a/stabbertests/proftest.c
+++ b/stabbertests/proftest.c
@@ -19,6 +19,7 @@
 #include "xmpp/xmpp.h"
 #include "command/command.h"
 #include "roster_list.h"
+#include "ui/windows.h"
 
 #ifdef HAVE_GIT_VERSION
 #include "gitversion.h"
@@ -157,6 +158,8 @@ init_prof_test(void **state)
     setenv("XDG_CONFIG_HOME", XDG_CONFIG_HOME, 1);
     setenv("XDG_DATA_HOME", XDG_DATA_HOME, 1);
 
+    _cleanup_dirs();
+
     _create_config_dir();
     _create_data_dir();
     _create_chatlogs_dir();
@@ -188,12 +191,14 @@ init_prof_test(void **state)
 #ifdef HAVE_LIBOTR
     otr_init();
 #endif
+    wins_init();
 }
 
 void
 close_prof_test(void **state)
 {
     jabber_disconnect();
+    prof_process_xmpp();
     jabber_shutdown();
     roster_free();
     muc_close();