#include "iostream-openssl.h"
#include "connection.h"
#include "test-common.h"
+#include "test-dir.h"
#include "test-subprocess.h"
#include "http-url.h"
#include "http-request.h"
static struct timeout *to_continue = NULL;
static bool files_finished = FALSE;
static bool running_continue = FALSE;
+static char *tmp_dir = NULL;
static struct test_settings {
/* client */
return;
}
- payload_output = iostream_temp_create("/tmp/test-http-server", 0);
+ payload_output = iostream_temp_create(
+ t_strconcat(tmp_dir, "/payload.tmp.", NULL), 0);
if (tset.server_blocking) {
struct istream *payload_input;
event_set_append_log_prefix(client_event, "test client: ");
server_event = event_create(common_event);
event_set_append_log_prefix(server_event, "test server: ");
+
+ tmp_dir = i_strdup(test_dir_get());
}
static void main_deinit(void)
event_unref(&client_event);
event_unref(&server_event);
common_event = NULL;
+
+ i_free(tmp_dir);
}
int main(int argc, char *argv[])
test_init();
event_set_forced_debug(test_event, debug);
+ test_dir_init("http-payload");
test_subprocesses_init();
main_init();