failure = NULL;
test_open_server_fd();
+ test_files_init();
+
lib_signals_ioloop_detach();
if ((server_pid = fork()) == (pid_t)-1)
test_client_deinit();
io_loop_destroy(&ioloop);
test_server_kill();
+
+ test_files_deinit();
}
static void
http_client_set.max_parallel_connections = 1;
http_client_set.max_pipelined_requests = 1;
- test_files_init();
test_run_client_server(&http_client_set, &http_server_set, client_init);
- test_files_deinit();
test_out_reason("sequential", (failure == NULL), failure);
}
http_client_set.max_parallel_connections = 1;
http_client_set.max_pipelined_requests = 8;
- test_files_init();
test_run_client_server(&http_client_set, &http_server_set, client_init);
- test_files_deinit();
test_out_reason("pipeline", (failure == NULL), failure);
}
http_client_set.max_parallel_connections = 40;
http_client_set.max_pipelined_requests = 8;
- test_files_init();
test_run_client_server(&http_client_set, &http_server_set, client_init);
- test_files_deinit();
test_out_reason("parallel", (failure == NULL), failure);
}