mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
gtestutils: Do not use default log handler when using TAP
Only use g_test_log() because it will prepend `#` to log messages when using TAP protocol. Meson >=1.0 rightfully prints a warning when using TAP protocol and stdout contains non-comment unknown TAP command.
This commit is contained in:
parent
81476d75ee
commit
5e09bb2366
@ -3280,9 +3280,10 @@ gtest_default_log_handler (const gchar *log_domain,
|
|||||||
|
|
||||||
msg = g_strjoinv ("", (gchar**) strv);
|
msg = g_strjoinv ("", (gchar**) strv);
|
||||||
g_test_log (fatal ? G_TEST_LOG_ERROR : G_TEST_LOG_MESSAGE, msg, NULL, 0, NULL);
|
g_test_log (fatal ? G_TEST_LOG_ERROR : G_TEST_LOG_MESSAGE, msg, NULL, 0, NULL);
|
||||||
g_log_default_handler (log_domain, log_level, message, unused_data);
|
|
||||||
|
|
||||||
g_free (msg);
|
g_free (msg);
|
||||||
|
|
||||||
|
if (!test_tap_log)
|
||||||
|
g_log_default_handler (log_domain, log_level, message, unused_data);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
x
Reference in New Issue
Block a user