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:
Philip Withnall 2022-06-14 18:32:07 +01:00
parent 75a39114d8
commit d48470df52

View File

@ -201,7 +201,7 @@ test_spawn_async_with_fds (void)
{ 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 ();
g_ptr_array_add (argv, echo_prog_path);