From 81c94597715f53b63cfb99f12b8ac50f98c8498f Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Mon, 5 Sep 2011 15:51:25 +0200 Subject: [PATCH] tests: supress ERROR log output for some tests Be nice when we tests for correct error handling and don't spam stdout. --- tests/check/libs/profile.c | 4 ++++ tests/check/libs/tag.c | 2 ++ tests/check/libs/video.c | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/tests/check/libs/profile.c b/tests/check/libs/profile.c index 285a58ebd4..c0002082ee 100644 --- a/tests/check/libs/profile.c +++ b/tests/check/libs/profile.c @@ -137,6 +137,8 @@ GST_START_TEST (test_target_naming) { GstEncodingTarget *target; + gst_debug_set_threshold_for_name ("default", GST_LEVEL_NONE); + /* NULL values */ ASSERT_CRITICAL (target = gst_encoding_target_new (NULL, NULL, NULL, NULL)); fail_if (target != NULL); @@ -398,6 +400,8 @@ GST_START_TEST (test_loading_profile) GValue strvalue = { 0, }; GValue miniobjectvalue = { 0, }; + gst_debug_set_threshold_for_name ("default", GST_LEVEL_NONE); + /* Test loading using short method and all arguments */ target = gst_encoding_target_load ("myponytarget", "herding", NULL); fail_unless (target != NULL); diff --git a/tests/check/libs/tag.c b/tests/check/libs/tag.c index 5b53e8900d..17401c37ee 100644 --- a/tests/check/libs/tag.c +++ b/tests/check/libs/tag.c @@ -765,6 +765,8 @@ GST_START_TEST (test_license_utils) gchar *path, *data = NULL; gsize data_len; + gst_debug_set_threshold_for_name ("tag-licenses", GST_LEVEL_NONE); + /* test jurisdiction-specific license */ fail_unless_equals_int (gst_tag_get_license_flags (SPECIFIC_L), 0x01010703); fail_unless_equals_string (gst_tag_get_license_nick (SPECIFIC_L), diff --git a/tests/check/libs/video.c b/tests/check/libs/video.c index a10ac64cde..47327d4825 100644 --- a/tests/check/libs/video.c +++ b/tests/check/libs/video.c @@ -627,6 +627,8 @@ GST_START_TEST (test_convert_frame) gint i; guint8 *data; + gst_debug_set_threshold_for_name ("default", GST_LEVEL_NONE); + from_buffer = gst_buffer_new_and_alloc (640 * 480 * 4); data = GST_BUFFER_DATA (from_buffer); @@ -696,6 +698,8 @@ GST_START_TEST (test_convert_frame_async) GMainLoop *loop; ConvertFrameContext cf_data = { NULL, NULL, NULL }; + gst_debug_set_threshold_for_name ("default", GST_LEVEL_NONE); + from_buffer = gst_buffer_new_and_alloc (640 * 480 * 4); data = GST_BUFFER_DATA (from_buffer);