mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
tests: memory: skip test that depends on debug system if it's disabled
This commit is contained in:
parent
d0c956adac
commit
736efc2d9e
1 changed files with 4 additions and 0 deletions
|
@ -683,6 +683,7 @@ _custom_log_func (GstDebugCategory * category,
|
||||||
fail_unless (dbg_msg == NULL);
|
fail_unless (dbg_msg == NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
GST_START_TEST (test_no_error_and_no_warning_on_map_failure)
|
GST_START_TEST (test_no_error_and_no_warning_on_map_failure)
|
||||||
{
|
{
|
||||||
GstAllocator *alloc;
|
GstAllocator *alloc;
|
||||||
|
@ -735,6 +736,7 @@ GST_START_TEST (test_no_error_and_no_warning_on_map_failure)
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
#endif /* !GST_DISABLE_GST_DEBUG */
|
||||||
|
|
||||||
static Suite *
|
static Suite *
|
||||||
gst_memory_suite (void)
|
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_map_resize);
|
||||||
tcase_add_test (tc_chain, test_alloc_params);
|
tcase_add_test (tc_chain, test_alloc_params);
|
||||||
tcase_add_test (tc_chain, test_lock);
|
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);
|
tcase_add_test (tc_chain, test_no_error_and_no_warning_on_map_failure);
|
||||||
|
#endif
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue