]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib: test-path-util - Use the new test-dir API
authorStephan Bosch <stephan.bosch@open-xchange.com>
Mon, 27 Oct 2025 21:05:52 +0000 (22:05 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Wed, 5 Nov 2025 10:17:48 +0000 (10:17 +0000)
src/lib/test-path-util.c

index c73b28403d068bccd56cb92134f4ae729b22339b..8cec0107a1b9eb4fd22745df30b622411fc11f95 100644 (file)
@@ -10,7 +10,7 @@
 #include <stdlib.h>
 #include <sys/stat.h>
 
-#define TEMP_DIRNAME ".test-path-util"
+#define TEMP_DIRNAME "path-util"
 
 static const char *tmpdir;
 static const char *cwd;
@@ -243,8 +243,7 @@ static void test_cleanup(void)
 
 static void test_path_util_init(void)
 {
-       const char *error;
-       test_assert(t_get_working_dir(&cwd, &error) == 0);
+       cwd = test_dir_get();
        tmpdir = t_strconcat(cwd, "/"TEMP_DIRNAME, NULL);
 
        test_cleanup();