mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
72362cb208
commit
98a68aa648
2 changed files with 21 additions and 5 deletions
|
@ -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>
|
||||
|
||||
Patch by: Luca Ognibene <luogni at tin dot it>
|
||||
|
|
|
@ -98,7 +98,7 @@ GST_START_TEST (test_libavcodec_locks)
|
|||
{
|
||||
gchar *sink[NUM_SINKS+1], *s, *sinks;
|
||||
gint i;
|
||||
|
||||
|
||||
for (i=0; i<NUM_SINKS; i++)
|
||||
sink[i] = g_strdup_printf (" t.src%d ! queue ! ffenc_mpeg4 ! ffdec_mpeg4 ! fakesink", i);
|
||||
|
||||
|
@ -137,7 +137,14 @@ simple_launch_lines_suite (void)
|
|||
tcase_set_timeout (tc_chain, timeout * 12);
|
||||
|
||||
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;
|
||||
}
|
||||
|
@ -145,13 +152,15 @@ simple_launch_lines_suite (void)
|
|||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
SRunner *sr;
|
||||
Suite *s;
|
||||
int nf;
|
||||
|
||||
Suite *s = simple_launch_lines_suite ();
|
||||
SRunner *sr = srunner_create (s);
|
||||
|
||||
gst_check_init (&argc, &argv);
|
||||
|
||||
s = simple_launch_lines_suite ();
|
||||
sr = srunner_create (s);
|
||||
|
||||
srunner_run_all (sr, CK_NORMAL);
|
||||
nf = srunner_ntests_failed (sr);
|
||||
srunner_free (sr);
|
||||
|
|
Loading…
Reference in a new issue