[glib: 2/3] tests: Use g_test_message() rather than fprintf()
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] tests: Use g_test_message() rather than fprintf()
- Date: Fri, 29 Apr 2022 08:00:51 +0000 (UTC)
commit df80a224d757dced2db69cf2f73be75ffa56c6c1
Author: Philip Withnall <pwithnall endlessos org>
Date: Tue Apr 12 13:21:29 2022 +0100
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>
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 52426be43a..6ff5f516a4 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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]