tests: Use standard g_test_message() logging in fileutils tests

Rather than a custom combination of `g_test_verbose()` and
`g_printerr()`.

Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
Philip Withnall 2025-03-10 16:27:58 +00:00
parent 918c4bd467
commit d77bff0bef
No known key found for this signature in database
GPG Key ID: C5C42CFB268637CA

View File

@ -817,19 +817,18 @@ test_mkdir_with_parents (void)
#ifndef G_OS_WIN32
gboolean can_override_dac = check_cap_dac_override (NULL);
#endif
if (g_test_verbose())
g_printerr ("checking g_mkdir_with_parents() in subdir ./hum/");
g_test_message ("Checking g_mkdir_with_parents() in subdir ./hum/");
test_mkdir_with_parents_1 ("hum");
g_remove ("hum");
if (g_test_verbose())
g_printerr ("checking g_mkdir_with_parents() in subdir ./hii///haa/hee/");
g_test_message ("Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/");
test_mkdir_with_parents_1 ("./hii///haa/hee///");
g_remove ("hii/haa/hee");
g_remove ("hii/haa");
g_remove ("hii");
cwd = g_get_current_dir ();
if (g_test_verbose())
g_printerr ("checking g_mkdir_with_parents() in cwd: %s", cwd);
g_test_message ("Checking g_mkdir_with_parents() in cwd: %s", cwd);
test_mkdir_with_parents_1 (cwd);
new_path = g_build_filename (cwd, "new", NULL);