From: Stephan Bosch Date: Sat, 1 Nov 2025 17:56:16 +0000 (+0100) Subject: lib-smtp: test-smtp-payload - Use the new test-dir API X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a85a2717e1f544c2a7f0052ebf02b1973c3b9d60;p=thirdparty%2Fdovecot%2Fcore.git lib-smtp: test-smtp-payload - Use the new test-dir API --- diff --git a/src/lib-smtp/test-smtp-payload.c b/src/lib-smtp/test-smtp-payload.c index 3fd0cd3c24..b4a6263e59 100644 --- a/src/lib-smtp/test-smtp-payload.c +++ b/src/lib-smtp/test-smtp-payload.c @@ -21,6 +21,7 @@ #include "dsasl-client.h" #include "sasl-server.h" #include "test-common.h" +#include "test-dir.h" #include "test-subprocess.h" #include "settings.h" #include "smtp-server.h" @@ -1338,7 +1339,7 @@ test_run_scenarios( /* client settings */ i_zero(&smtp_client_set); smtp_client_set.my_hostname = "localhost"; - smtp_client_set.temp_path_prefix = "/tmp"; + smtp_client_set.temp_path_prefix = test_dir_get(); smtp_client_set.command_timeout_msecs = CLIENT_PROGRESS_TIMEOUT_MSECS; smtp_client_set.connect_timeout_msecs = CLIENT_PROGRESS_TIMEOUT_MSECS; smtp_client_set.sasl_mechanisms = tset.sasl_mech; @@ -1538,6 +1539,7 @@ int main(int argc, char *argv[]) test_init(); event_set_forced_debug(test_event, debug); + test_dir_init("smtp-payload"); test_subprocesses_init(); /* listen on localhost */