From: Aki Tuomi Date: Wed, 12 Nov 2025 08:52:42 +0000 (+0200) Subject: lib: test-path-util - Normalize cwd X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c573233d1b0ff0515093ab763e1f25613ab41afd;p=thirdparty%2Fdovecot%2Fcore.git lib: test-path-util - Normalize cwd Avoids unnecessary failure later on. --- diff --git a/src/lib/test-path-util.c b/src/lib/test-path-util.c index 8cec0107a1..4e55f07185 100644 --- a/src/lib/test-path-util.c +++ b/src/lib/test-path-util.c @@ -243,7 +243,10 @@ static void test_cleanup(void) static void test_path_util_init(void) { + const char *error; cwd = test_dir_get(); + if (t_normpath(cwd, &cwd, &error) < 0) + i_fatal("t_normpath(%s) failed: %s", cwd, error); tmpdir = t_strconcat(cwd, "/"TEMP_DIRNAME, NULL); test_cleanup();