diff options
author | James Booth <boothj5@gmail.com> | 2016-01-05 01:38:31 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-05 01:38:31 +0000 |
commit | 393e69016575c0e0dc3669f43b916b3742866cf3 (patch) | |
tree | e29a9ee836c1f4ba88e129f3c31df60a8b78cb56 /tests/functionaltests/test_disconnect.c | |
parent | 055a5f71ce38c87ea1c97d475fd870ee25148ea9 (diff) | |
parent | e1e0fda8b307270045a744f1325e8d88032f65b9 (diff) | |
download | profani-tty-393e69016575c0e0dc3669f43b916b3742866cf3.tar.gz |
Merge branch 'master' into roster-struct
Diffstat (limited to 'tests/functionaltests/test_disconnect.c')
-rw-r--r-- | tests/functionaltests/test_disconnect.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/functionaltests/test_disconnect.c b/tests/functionaltests/test_disconnect.c new file mode 100644 index 00000000..7529da18 --- /dev/null +++ b/tests/functionaltests/test_disconnect.c @@ -0,0 +1,24 @@ +#include <glib.h> +#include <stdarg.h> +#include <stddef.h> +#include <setjmp.h> +#include <cmocka.h> +#include <stdlib.h> +#include <string.h> + +#include <stabber.h> +#include <expect.h> + +#include "proftest.h" + +void +disconnect_ends_session(void **state) +{ + prof_connect(); + + prof_input("/disconnect"); + assert_true(prof_output_exact("stabber@localhost/profanity logged out successfully.")); + + prof_input("/roster"); + assert_true(prof_output_exact("You are not currently connected.")); +} |