Added ping test

This commit is contained in:
James Booth
2015-05-24 19:24:01 +01:00
parent cddc55b51b
commit 79ecff1c52
5 changed files with 51 additions and 8 deletions

View File

@@ -36,10 +36,10 @@ char *config_orig;
char *data_orig;
void
prof_process_xmpp(void)
prof_process_xmpp(int loops)
{
int i = 0;
while (i < 20) {
while (i < loops) {
jabber_process_events(10);
i++;
}
@@ -198,7 +198,7 @@ void
close_prof_test(void **state)
{
jabber_disconnect();
prof_process_xmpp();
prof_process_xmpp(20);
jabber_shutdown();
roster_free();
muc_close();