mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-18 19:16:21 +00:00
- Replace stbbr_for_id() with stbbr_for_query()/stbbr_send() - Content-based stubbing matches stanzas by namespace instead of ID - Use regex assertions for flexible output matching - Fix timing issues in chat_session and presence tests
21 lines
410 B
C
21 lines
410 B
C
#include <glib.h>
|
|
#include "prof_cmocka.h"
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
#include <stabber.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."));
|
|
}
|