1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00
profanity/tests/functionaltests/test_disconnect.c
James Booth 63bf89e6fc Allow clearing account resource
issue #880

Conflicts:
	src/ui/console.c
2016-11-22 00:49:32 +00:00

25 lines
485 B
C

#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 logged out successfully."));
prof_input("/roster");
assert_true(prof_output_exact("You are not currently connected."));
}