#include <sys/stat.h>
#define TEMP_DIRNAME ".test-ich"
+#define SERVER_KILL_TIMEOUT_SECS 10
#define EVILSTR "\t\r\n\001"
mail_storage_service_deinit(&storage_service);
master_service_deinit_forked(&master_service);
- return 0;
+ return test_has_failed() ? 1 : 0;
}
static void
deinitializing cleanly */
mailbox_notify_changes(client->mailbox, mailbox_notify_callback, client);
test_assert(imap_client_hibernate(&client, &error));
+ test_subprocess_kill_all(SERVER_KILL_TIMEOUT_SECS);
+
test_end();
i_close_fd(&ctx.fd_listen);