tests/check/generic/libavcodec-locking.c: Only run test when encoder element is available (we might have been configu...

Original commit message from CVS:
* tests/check/generic/libavcodec-locking.c: (GST_START_TEST),
(simple_launch_lines_suite), (main):
Only run test when encoder element is available (we might
have been configured with --disable-encoders).
This commit is contained in:
Tim-Philipp Müller 2006-05-09 16:33:20 +00:00
parent 72362cb208
commit 98a68aa648
2 changed files with 21 additions and 5 deletions

View file

@ -1,3 +1,10 @@
2006-05-09 Tim-Philipp Müller <tim at centricular dot net>
* tests/check/generic/libavcodec-locking.c: (GST_START_TEST),
(simple_launch_lines_suite), (main):
Only run test when encoder element is available (we might
have been configured with --disable-encoders).
2006-05-09 Tim-Philipp Müller <tim at centricular dot net> 2006-05-09 Tim-Philipp Müller <tim at centricular dot net>
Patch by: Luca Ognibene <luogni at tin dot it> Patch by: Luca Ognibene <luogni at tin dot it>

View file

@ -137,7 +137,14 @@ simple_launch_lines_suite (void)
tcase_set_timeout (tc_chain, timeout * 12); tcase_set_timeout (tc_chain, timeout * 12);
suite_add_tcase (s, tc_chain); suite_add_tcase (s, tc_chain);
tcase_add_test (tc_chain, test_libavcodec_locks);
/* only run this if we haven't been configured with --disable-encoders */
if (gst_default_registry_check_feature_version ("ffenc_mpeg4",
GST_VERSION_MAJOR, GST_VERSION_MINOR, 0)) {
tcase_add_test (tc_chain, test_libavcodec_locks);
} else {
g_print ("******* Skipping libavcodec_locks test, no encoder available\n");
}
return s; return s;
} }
@ -145,13 +152,15 @@ simple_launch_lines_suite (void)
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {
SRunner *sr;
Suite *s;
int nf; int nf;
Suite *s = simple_launch_lines_suite ();
SRunner *sr = srunner_create (s);
gst_check_init (&argc, &argv); gst_check_init (&argc, &argv);
s = simple_launch_lines_suite ();
sr = srunner_create (s);
srunner_run_all (sr, CK_NORMAL); srunner_run_all (sr, CK_NORMAL);
nf = srunner_ntests_failed (sr); nf = srunner_ntests_failed (sr);
srunner_free (sr); srunner_free (sr);