mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
checks: skip id3mux unit tests that need id3demux if id3demux is not available
This commit is contained in:
parent
caa8f156b6
commit
49ce307cb7
1 changed files with 9 additions and 18 deletions
|
@ -546,25 +546,16 @@ id3mux_suite (void)
|
|||
TCase *tc_chain = tcase_create ("general");
|
||||
|
||||
suite_add_tcase (s, tc_chain);
|
||||
tcase_add_test (tc_chain, test_id3mux_v2_3);
|
||||
tcase_add_test (tc_chain, test_id3mux_v2_4);
|
||||
|
||||
if (gst_default_registry_check_feature_version ("id3demux",
|
||||
GST_VERSION_MAJOR, GST_VERSION_MINOR, 0)) {
|
||||
tcase_add_test (tc_chain, test_id3mux_v2_3);
|
||||
tcase_add_test (tc_chain, test_id3mux_v2_4);
|
||||
} else {
|
||||
GST_WARNING ("id3demux element not available, skipping tests");
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
int nf;
|
||||
|
||||
Suite *s = id3mux_suite ();
|
||||
SRunner *sr = srunner_create (s);
|
||||
|
||||
gst_check_init (&argc, &argv);
|
||||
|
||||
srunner_run_all (sr, CK_NORMAL);
|
||||
nf = srunner_ntests_failed (sr);
|
||||
srunner_free (sr);
|
||||
|
||||
return nf;
|
||||
}
|
||||
GST_CHECK_MAIN (id3mux);
|
||||
|
|
Loading…
Reference in a new issue