camerabin2: Small tests update

Increases timeout value so that tests won't fail with full
debug output.

Also removes buffer alloc from videotestsrc as this feature
isn't ready on camerabin2
This commit is contained in:
Thiago Santos 2010-12-17 23:06:23 -03:00
parent 1904c1891f
commit f10e445995

View file

@ -257,11 +257,11 @@ setup (void)
main_loop = g_main_loop_new (NULL, TRUE); main_loop = g_main_loop_new (NULL, TRUE);
camera = gst_check_setup_element ("camerabin2"); camera = gst_check_setup_element ("camerabin2");
fakevideosink = gst_check_setup_element ("fakesink"); fakevideosink = gst_element_factory_make ("fakesink", NULL);
src = gst_check_setup_element ("wrappercamerabinsrc"); src = gst_element_factory_make ("wrappercamerabinsrc", NULL);
testsrc = gst_check_setup_element ("videotestsrc"); testsrc = gst_element_factory_make ("videotestsrc", NULL);
g_object_set (G_OBJECT (testsrc), "is-live", TRUE, NULL); g_object_set (G_OBJECT (testsrc), "is-live", TRUE, "peer-alloc", FALSE, NULL);
g_object_set (G_OBJECT (src), "video-src", testsrc, NULL); g_object_set (G_OBJECT (src), "video-src", testsrc, NULL);
g_object_set (G_OBJECT (camera), "camera-src", src, NULL); g_object_set (G_OBJECT (camera), "camera-src", src, NULL);
gst_object_unref (src); gst_object_unref (src);
@ -588,7 +588,7 @@ camerabin_suite (void)
/* Test that basic operations run without errors */ /* Test that basic operations run without errors */
suite_add_tcase (s, tc_basic); suite_add_tcase (s, tc_basic);
/* Increase timeout due to video recording */ /* Increase timeout due to video recording */
tcase_set_timeout (tc_basic, 30); tcase_set_timeout (tc_basic, 60);
tcase_add_checked_fixture (tc_basic, setup, teardown); tcase_add_checked_fixture (tc_basic, setup, teardown);
tcase_add_test (tc_basic, test_single_image_capture); tcase_add_test (tc_basic, test_single_image_capture);
tcase_add_test (tc_basic, test_single_video_recording); tcase_add_test (tc_basic, test_single_video_recording);