mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-11 03:46:17 +01:00
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:
parent
1bf53c9ced
commit
a43723ef17
@ -295,10 +295,12 @@ test_spawn_async_with_fds (void)
|
||||
|
||||
if (test_pipe[1][0] >= 0)
|
||||
{
|
||||
gchar *tmp = g_strdup_printf ("# thread %d" LINEEND, tnum);
|
||||
/* Check for echo on stdout */
|
||||
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_free (tmp);
|
||||
}
|
||||
g_string_free (data.stdout_buf, TRUE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user