mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
autodetect: remove cruft from the test
Remove the obsolete version check and use the ignore macro for the disabled test.
This commit is contained in:
parent
a4fd0f9351
commit
c40e8b1210
1 changed files with 3 additions and 14 deletions
|
@ -81,8 +81,6 @@ GST_START_TEST (test_autovideosink_ghostpad_error_case)
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
/* disable this for now, too many valgrind suppressions needed for libasound */
|
|
||||||
#if 0
|
|
||||||
GST_START_TEST (test_autoaudiosink_ghostpad_error_case)
|
GST_START_TEST (test_autoaudiosink_ghostpad_error_case)
|
||||||
{
|
{
|
||||||
GstStateChangeReturn state_ret;
|
GstStateChangeReturn state_ret;
|
||||||
|
@ -120,26 +118,17 @@ GST_START_TEST (test_autoaudiosink_ghostpad_error_case)
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
#endif
|
|
||||||
|
|
||||||
static Suite *
|
static Suite *
|
||||||
autodetect_suite (void)
|
autodetect_suite (void)
|
||||||
{
|
{
|
||||||
guint maj, min, mic, nano;
|
|
||||||
|
|
||||||
Suite *s = suite_create ("autodetect");
|
Suite *s = suite_create ("autodetect");
|
||||||
TCase *tc_chain = tcase_create ("general");
|
TCase *tc_chain = tcase_create ("general");
|
||||||
|
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
|
tcase_add_test (tc_chain, test_autovideosink_ghostpad_error_case);
|
||||||
gst_version (&maj, &min, &mic, &nano);
|
/* disable this for now, too many valgrind suppressions needed for libasound */
|
||||||
|
tcase_skip_broken_test (tc_chain, test_autoaudiosink_ghostpad_error_case);
|
||||||
/* requires fixes from 0.10.10.1, but don't want to add a hard dependency
|
|
||||||
* in configure.ac just for this yet */
|
|
||||||
if (maj > 0 || min > 10 || mic > 10 || (mic == 10 && nano > 0)) {
|
|
||||||
tcase_add_test (tc_chain, test_autovideosink_ghostpad_error_case);
|
|
||||||
/* tcase_add_test (tc_chain, test_autoaudiosink_ghostpad_error_case); */
|
|
||||||
}
|
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue