From 42b892940763bc1901be38e75df4d3966cac0ab9 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 17 Jan 2023 15:29:10 +0000 Subject: [PATCH] tests: Add a test print to spawn-test on Windows To try and debug why the following assert sometimes fails on `msys2-clang64`, such as in this job: https://gitlab.gnome.org/GNOME/glib/-/jobs/2515166. Signed-off-by: Philip Withnall Helps: #1371 --- glib/tests/spawn-test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glib/tests/spawn-test.c b/glib/tests/spawn-test.c index 2e39aca8c..c0b6829fe 100644 --- a/glib/tests/spawn-test.c +++ b/glib/tests/spawn-test.c @@ -123,6 +123,7 @@ test_spawn_basics (void) #else { gchar *file_not_found_message = g_win32_error_message (ERROR_FILE_NOT_FOUND); + g_test_message ("sort output: %s\nExpected message: %s", erroutput, file_not_found_message); g_assert_nonnull (strstr (erroutput, file_not_found_message)); g_free (file_not_found_message); }