validate: tests: disable g_log handler

It messes up our own failures counter

And pass test-utils into gst-indent
This commit is contained in:
Thibault Saunier 2014-12-09 10:09:15 +01:00
parent 6df63915c2
commit 0c48665458

View file

@ -183,8 +183,9 @@ fake_demuxer_new (void)
return GST_ELEMENT (g_object_new (FAKE_DEMUXER_TYPE, NULL));
}
GstElement * create_and_monitor_element (const gchar *factoryname, const gchar *name,
GstValidateRunner *runner)
GstElement *
create_and_monitor_element (const gchar * factoryname, const gchar * name,
GstValidateRunner * runner)
{
GstElement *element;
GstValidateMonitor *monitor;
@ -192,21 +193,23 @@ GstElement * create_and_monitor_element (const gchar *factoryname, const gchar *
element = gst_element_factory_make (factoryname, name);
if (runner) {
monitor =
gst_validate_monitor_factory_create (GST_OBJECT (element), runner, NULL);
gst_validate_reporter_set_handle_g_logs (GST_VALIDATE_REPORTER (monitor));
gst_validate_monitor_factory_create (GST_OBJECT (element), runner,
NULL);
fail_unless (GST_IS_VALIDATE_ELEMENT_MONITOR (monitor));
}
return element;
return element;
}
void
free_element_monitor (GstElement *element)
free_element_monitor (GstElement * element)
{
GstValidateMonitor *monitor;
monitor = (GstValidateMonitor *) g_object_get_data (G_OBJECT (element), "validate-monitor");
monitor =
(GstValidateMonitor *) g_object_get_data (G_OBJECT (element),
"validate-monitor");
g_object_unref (G_OBJECT(monitor));
g_object_unref (G_OBJECT (monitor));
}
static GstStaticPadTemplate fake_decoder_src_template =