mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
tests: supress ERROR log output for some tests
Be nice when we tests for correct error handling and don't spam stdout.
This commit is contained in:
parent
b1c00adf31
commit
81c9459771
3 changed files with 10 additions and 0 deletions
|
@ -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);
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue