From f56071ac4412541e83624f54d8d533f264803bfe Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Mon, 27 Oct 2025 22:05:52 +0100 Subject: [PATCH] lib: test-path-util - Use the new test-dir API --- src/lib/test-path-util.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); -- 2.47.3