]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: test-http-payload - Call test_files_init/deinit() in test_run_client_server().
authorStephan Bosch <stephan.bosch@open-xchange.com>
Fri, 3 Apr 2020 19:46:30 +0000 (21:46 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Fri, 22 May 2020 08:42:33 +0000 (08:42 +0000)
src/lib-http/test-http-payload.c

index 6dcfd4ea7572a97b1cbee3da6de1a0caa1388924..0d1ff45454c5f098cf6567be59f32270e743d8a8 100644 (file)
@@ -1613,6 +1613,8 @@ test_run_client_server(
        failure = NULL;
        test_open_server_fd();
 
+       test_files_init();
+
        lib_signals_ioloop_detach();
 
        if ((server_pid = fork()) == (pid_t)-1)
@@ -1654,6 +1656,8 @@ test_run_client_server(
        test_client_deinit();
        io_loop_destroy(&ioloop);
        test_server_kill();
+
+       test_files_deinit();
 }
 
 static void
@@ -1713,9 +1717,7 @@ test_run_sequential(
        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);
 }
@@ -1747,9 +1749,7 @@ test_run_pipeline(
        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);
 }
@@ -1781,9 +1781,7 @@ test_run_parallel(
        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);
 }