tests: supress ERROR log output for some tests
authorStefan Sauer <ensonic@users.sf.net>
Mon, 5 Sep 2011 13:51:25 +0000 (15:51 +0200)
committerStefan Sauer <ensonic@users.sf.net>
Mon, 5 Sep 2011 13:52:41 +0000 (15:52 +0200)
Be nice when we tests for correct error handling and don't spam stdout.

tests/check/libs/profile.c
tests/check/libs/tag.c
tests/check/libs/video.c

index 285a58e..c000208 100644 (file)
@@ -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);
index 5b53e89..17401c3 100644 (file)
@@ -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),
index a10ac64..47327d4 100644 (file)
@@ -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);