]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-smtp: test-smtp-payload - Use the new test-dir API
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sat, 1 Nov 2025 17:56:16 +0000 (18:56 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 5 Nov 2025 10:17:48 +0000 (10:17 +0000)
src/lib-smtp/test-smtp-payload.c

index 3fd0cd3c2487abd56fab90b76aafdec6ded45cb4..b4a6263e59000a769f15f6df434d14ddbec2ec3e 100644 (file)
@@ -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 */