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 <pwithnall@endlessos.org>

Helps: #1371
This commit is contained in:
Philip Withnall 2023-01-17 15:29:10 +00:00
parent 438006899e
commit 42b8929407

View File

@ -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);
}