From: Stephan Bosch Date: Mon, 27 Oct 2025 21:05:52 +0000 (+0100) Subject: lib: test-path-util - Use the new test-dir API X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f56071ac4412541e83624f54d8d533f264803bfe;p=thirdparty%2Fdovecot%2Fcore.git lib: test-path-util - Use the new test-dir API --- diff --git a/src/lib/test-path-util.c b/src/lib/test-path-util.c index c73b28403d..8cec0107a1 100644 --- a/src/lib/test-path-util.c +++ b/src/lib/test-path-util.c @@ -10,7 +10,7 @@ #include #include -#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();