mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-14 05:16:18 +01:00
tests: Fix TAP output from spawn-singlethread test
The output from the echo program ends up being outputted with the stdout from the unit test in some tests. Ensure that the input to the echo program is therefore a valid TAP comment, rather than garbage, so that it’s safely ignored by a TAP parser looking at the output from the test. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
75a39114d8
commit
d48470df52
@ -201,7 +201,7 @@ test_spawn_async_with_fds (void)
|
|||||||
{ NO_FD, PIPE, STDOUT_PIPE }, /* Test the same fd for stdout + stderr */
|
{ NO_FD, PIPE, STDOUT_PIPE }, /* Test the same fd for stdout + stderr */
|
||||||
};
|
};
|
||||||
|
|
||||||
arg = g_strdup_printf ("thread %d", tnum);
|
arg = g_strdup_printf ("# thread %d\n", tnum);
|
||||||
|
|
||||||
argv = g_ptr_array_new ();
|
argv = g_ptr_array_new ();
|
||||||
g_ptr_array_add (argv, echo_prog_path);
|
g_ptr_array_add (argv, echo_prog_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user