mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-09 19:06:15 +01:00
tests: Fix non-TAP output from debugcontroller test
When running under a strict TAP parser this was previously producing problematic non-conforming output. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
1b377e6574
commit
f977ddf34f
@ -383,6 +383,15 @@ test_dbus_properties (void)
|
||||
g_clear_object (&bus);
|
||||
}
|
||||
|
||||
static GLogWriterOutput
|
||||
noop_log_writer_cb (GLogLevelFlags log_level,
|
||||
const GLogField *fields,
|
||||
gsize n_fields,
|
||||
gpointer user_data)
|
||||
{
|
||||
return G_LOG_WRITER_HANDLED;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc,
|
||||
char *argv[])
|
||||
@ -390,6 +399,10 @@ main (int argc,
|
||||
setlocale (LC_ALL, "");
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
/* Ignore the log messages, as the debug controller prints one when debug is
|
||||
* enabled/disabled, and if debug is enabled then that will escape to stdout. */
|
||||
g_log_set_writer_func (noop_log_writer_cb, NULL, NULL);
|
||||
|
||||
g_test_add_func ("/debug-controller/dbus/basic", test_dbus_basic);
|
||||
g_test_add_func ("/debug-controller/dbus/duplicate", test_dbus_duplicate);
|
||||
g_test_add_func ("/debug-controller/dbus/properties", test_dbus_properties);
|
||||
|
Loading…
Reference in New Issue
Block a user