about summary refs log tree commit diff stats
path: root/tests/functionaltests/functionaltests.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-05 01:30:32 +0000
committerJames Booth <boothj5@gmail.com>2016-01-05 01:30:32 +0000
commite1e0fda8b307270045a744f1325e8d88032f65b9 (patch)
tree97350cd39b427724931dfe6c78187c4db3a37e65 /tests/functionaltests/functionaltests.c
parent8e9bf083895ba7101115594a39dace62a59ab28f (diff)
downloadprofani-tty-e1e0fda8b307270045a744f1325e8d88032f65b9.tar.gz
Call UI disconnect functions before disconnecting with /disconnect
fixes #703
Diffstat (limited to 'tests/functionaltests/functionaltests.c')
-rw-r--r--tests/functionaltests/functionaltests.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/functionaltests/functionaltests.c b/tests/functionaltests/functionaltests.c
index 751306c0..878561dc 100644
--- a/tests/functionaltests/functionaltests.c
+++ b/tests/functionaltests/functionaltests.c
@@ -21,6 +21,7 @@
 #include "test_roster.h"
 #include "test_software.h"
 #include "test_muc.h"
+#include "test_disconnect.h"
 
 #define PROF_FUNC_TEST(test) unit_test_setup_teardown(test, init_prof_test, close_prof_test)
 
@@ -98,6 +99,8 @@ int main(int argc, char* argv[]) {
         PROF_FUNC_TEST(shows_all_messages_in_console_when_window_not_focussed),
         PROF_FUNC_TEST(shows_first_message_in_console_when_window_not_focussed),
         PROF_FUNC_TEST(shows_no_message_in_console_when_window_not_focussed),
+
+        PROF_FUNC_TEST(disconnect_ends_session),
     };
 
     return run_tests(all_tests);