From df80a224d757dced2db69cf2f73be75ffa56c6c1 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 12 Apr 2022 13:21:29 +0100 Subject: [PATCH] tests: Use g_test_message() rather than fprintf() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- glib/tests/unicode-normalize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glib/tests/unicode-normalize.c b/glib/tests/unicode-normalize.c index 52426be43..6ff5f516a 100644 --- a/glib/tests/unicode-normalize.c +++ b/glib/tests/unicode-normalize.c @@ -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; }