From: Tim-Philipp Müller Date: Wed, 5 Jul 2017 12:19:00 +0000 (+0100) Subject: tests: memory: skip test that depends on debug system if it's disabled X-Git-Tag: 1.16.2~728 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=736efc2d9e74bcb5c9cb255937fa5d644da91658;p=platform%2Fupstream%2Fgstreamer.git tests: memory: skip test that depends on debug system if it's disabled --- diff --git a/tests/check/gst/gstmemory.c b/tests/check/gst/gstmemory.c index 7f430ae..9bd6c00 100644 --- a/tests/check/gst/gstmemory.c +++ b/tests/check/gst/gstmemory.c @@ -683,6 +683,7 @@ _custom_log_func (GstDebugCategory * category, fail_unless (dbg_msg == NULL); } +#ifndef GST_DISABLE_GST_DEBUG GST_START_TEST (test_no_error_and_no_warning_on_map_failure) { GstAllocator *alloc; @@ -735,6 +736,7 @@ GST_START_TEST (test_no_error_and_no_warning_on_map_failure) } GST_END_TEST; +#endif /* !GST_DISABLE_GST_DEBUG */ static Suite * gst_memory_suite (void) @@ -755,7 +757,9 @@ gst_memory_suite (void) tcase_add_test (tc_chain, test_map_resize); tcase_add_test (tc_chain, test_alloc_params); tcase_add_test (tc_chain, test_lock); +#ifndef GST_DISABLE_GST_DEBUG tcase_add_test (tc_chain, test_no_error_and_no_warning_on_map_failure); +#endif return s; }