camerabin2: Small tests update
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Sat, 18 Dec 2010 02:06:23 +0000 (23:06 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Thu, 23 Dec 2010 16:24:56 +0000 (13:24 -0300)
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

tests/check/elements/camerabin2.c

index 3057839..fe36d09 100644 (file)
@@ -257,11 +257,11 @@ setup (void)
   main_loop = g_main_loop_new (NULL, TRUE);
 
   camera = gst_check_setup_element ("camerabin2");
-  fakevideosink = gst_check_setup_element ("fakesink");
-  src = gst_check_setup_element ("wrappercamerabinsrc");
-  testsrc = gst_check_setup_element ("videotestsrc");
+  fakevideosink = gst_element_factory_make ("fakesink", NULL);
+  src = gst_element_factory_make ("wrappercamerabinsrc", NULL);
+  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 (camera), "camera-src", src, NULL);
   gst_object_unref (src);
@@ -588,7 +588,7 @@ camerabin_suite (void)
   /* Test that basic operations run without errors */
   suite_add_tcase (s, tc_basic);
   /* 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_test (tc_basic, test_single_image_capture);
   tcase_add_test (tc_basic, test_single_video_recording);