tests: Use g_test_message() rather than fprintf()

This ensures that the output is redirected properly, and prefixed with
`#` when outputting in TAP mode, so that it doesn’t confuse the TAP
format parser.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
Philip Withnall 2022-04-12 13:21:29 +01:00
parent ba9620f947
commit df80a224d7

View File

@ -121,7 +121,7 @@ test_unicode_normalize (void)
goto next;
if (buffer->str[0] == '@') /* Part */
{
fprintf (stderr, "\nProcessing %s\n", buffer->str + 1);
g_test_message ("Processing %s", buffer->str + 1);
goto next;
}