From: Stephan Bosch Date: Mon, 27 Oct 2025 21:00:13 +0000 (+0100) Subject: lib-program-client: test-program-client-* - Use the new test-dir API X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e8376edcc4d6f9a02a79f8c0f624f5fdc787172;p=thirdparty%2Fdovecot%2Fcore.git lib-program-client: test-program-client-* - Use the new test-dir API --- diff --git a/src/lib-program-client/test-program-client-net.c b/src/lib-program-client/test-program-client-net.c index b4c588be53..190d7698bb 100644 --- a/src/lib-program-client/test-program-client-net.c +++ b/src/lib-program-client/test-program-client-net.c @@ -97,6 +97,7 @@ static void test_program_client_destroy(struct test_client **_client) static int test_program_input_handle(struct test_client *client, const char *line) { + const char *tmp_prefix = test_dir_prepend("program-client-unix."); int cmp = -1; const char *arg; @@ -131,7 +132,7 @@ test_program_input_handle(struct test_client *client, const char *line) case CLIENT_STATE_BODY: if (client->os_body == NULL) { client->os_body = iostream_temp_create_named( - ".dovecot.test.", 0, "test_program_input body"); + tmp_prefix, 0, "test_program_input body"); } if (client->is_body == NULL) client->is_body = i_stream_create_dot(client->in, @@ -546,6 +547,7 @@ int main(int argc, char *argv[]) } } + test_dir_init("program-client-net"); ret = test_run(tests); event_unref(&event); diff --git a/src/lib-program-client/test-program-client-unix.c b/src/lib-program-client/test-program-client-unix.c index 849205f826..028e29de67 100644 --- a/src/lib-program-client/test-program-client-unix.c +++ b/src/lib-program-client/test-program-client-unix.c @@ -79,6 +79,7 @@ static void test_program_client_destroy(struct test_client **_client) static int test_program_input_handle(struct test_client *client, const char *line) { + const char *tmp_prefix = test_dir_prepend("program-client-unix."); int cmp = -1; const char *arg; @@ -113,7 +114,7 @@ test_program_input_handle(struct test_client *client, const char *line) case CLIENT_STATE_BODY: if (client->os_body == NULL) { client->os_body = iostream_temp_create_named( - ".dovecot.test.", 0, "test_program_input body"); + tmp_prefix, 0, "test_program_input body"); } switch (o_stream_send_istream(client->os_body, client->in)) { case OSTREAM_SEND_ISTREAM_RESULT_ERROR_OUTPUT: @@ -495,6 +496,7 @@ int main(int argc, char *argv[]) } } + test_dir_init("program-client-unix"); ret = test_run(tests); event_unref(&event);