tests/spawn-singlethread: fix test EOL on win32

The "arg" argument is given in \n-ending form, but the returned result
is \r\n-ending.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
Marc-André Lureau 2022-06-24 14:07:41 +04:00
parent 1bf53c9ced
commit a43723ef17

View File

@ -295,10 +295,12 @@ test_spawn_async_with_fds (void)
if (test_pipe[1][0] >= 0) if (test_pipe[1][0] >= 0)
{ {
gchar *tmp = g_strdup_printf ("# thread %d" LINEEND, tnum);
/* Check for echo on stdout */ /* Check for echo on stdout */
g_assert_true (data.stdout_done); g_assert_true (data.stdout_done);
g_assert_cmpstr (data.stdout_buf->str, ==, arg); g_assert_cmpstr (data.stdout_buf->str, ==, tmp);
g_io_channel_unref (channel); g_io_channel_unref (channel);
g_free (tmp);
} }
g_string_free (data.stdout_buf, TRUE); g_string_free (data.stdout_buf, TRUE);