mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
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:
parent
6df63915c2
commit
0c48665458
1 changed files with 11 additions and 8 deletions
|
@ -183,8 +183,9 @@ fake_demuxer_new (void)
|
||||||
return GST_ELEMENT (g_object_new (FAKE_DEMUXER_TYPE, NULL));
|
return GST_ELEMENT (g_object_new (FAKE_DEMUXER_TYPE, NULL));
|
||||||
}
|
}
|
||||||
|
|
||||||
GstElement * create_and_monitor_element (const gchar *factoryname, const gchar *name,
|
GstElement *
|
||||||
GstValidateRunner *runner)
|
create_and_monitor_element (const gchar * factoryname, const gchar * name,
|
||||||
|
GstValidateRunner * runner)
|
||||||
{
|
{
|
||||||
GstElement *element;
|
GstElement *element;
|
||||||
GstValidateMonitor *monitor;
|
GstValidateMonitor *monitor;
|
||||||
|
@ -192,21 +193,23 @@ GstElement * create_and_monitor_element (const gchar *factoryname, const gchar *
|
||||||
element = gst_element_factory_make (factoryname, name);
|
element = gst_element_factory_make (factoryname, name);
|
||||||
if (runner) {
|
if (runner) {
|
||||||
monitor =
|
monitor =
|
||||||
gst_validate_monitor_factory_create (GST_OBJECT (element), runner, NULL);
|
gst_validate_monitor_factory_create (GST_OBJECT (element), runner,
|
||||||
gst_validate_reporter_set_handle_g_logs (GST_VALIDATE_REPORTER (monitor));
|
NULL);
|
||||||
fail_unless (GST_IS_VALIDATE_ELEMENT_MONITOR (monitor));
|
fail_unless (GST_IS_VALIDATE_ELEMENT_MONITOR (monitor));
|
||||||
}
|
}
|
||||||
|
|
||||||
return element;
|
return element;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
free_element_monitor (GstElement *element)
|
free_element_monitor (GstElement * element)
|
||||||
{
|
{
|
||||||
GstValidateMonitor *monitor;
|
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 =
|
static GstStaticPadTemplate fake_decoder_src_template =
|
||||||
|
|
Loading…
Reference in a new issue