From d77bff0bef7aed186b725d70e9b6556708d4bf2c Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Mon, 10 Mar 2025 16:27:58 +0000 Subject: [PATCH] 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 --- glib/tests/fileutils.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/glib/tests/fileutils.c b/glib/tests/fileutils.c index b9356bf5e..98b854b01 100644 --- a/glib/tests/fileutils.c +++ b/glib/tests/fileutils.c @@ -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);