From 0c486654586644d696ca2b7099d7222a569b88a1 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 9 Dec 2014 10:09:15 +0100 Subject: [PATCH] validate: tests: disable g_log handler It messes up our own failures counter And pass test-utils into gst-indent --- validate/tests/check/validate/test-utils.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/validate/tests/check/validate/test-utils.c b/validate/tests/check/validate/test-utils.c index 5265d96..075414c 100644 --- a/validate/tests/check/validate/test-utils.c +++ b/validate/tests/check/validate/test-utils.c @@ -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 = -- 2.7.4