adaptivedemux: tests: disabled testFragmentDownloadError test
authorFlorin Apostol <florin.apostol@oregan.net>
Mon, 9 Nov 2015 18:07:30 +0000 (18:07 +0000)
committerVincent Penquerc'h <vincent.penquerch@collabora.co.uk>
Tue, 24 Nov 2015 16:37:23 +0000 (16:37 +0000)
Until we will have support to control the generating thread from
fakeHTTPsrc element, the test testFragmentDownloadError is disabled.

https://bugzilla.gnome.org/show_bug.cgi?id=757776

tests/check/elements/dash_demux.c

index 13211c2..55f5c8c 100644 (file)
@@ -1291,6 +1291,14 @@ GST_START_TEST (testDownloadError)
 
 GST_END_TEST;
 
+/* testFragmentDownloadError is disabled until we redesign the test framework
+ * to allow better control on when fakeHTTPsrc element will create data.
+ * Currently that is being done asynchronously and there is no easy way
+ * to synchronise data generation with the data processing (the test) so that
+ * we can guarantee that error generation is done during data generation and
+ * not afterwards.
+ */
+#if 0
 /* generate error message on adaptive demux pipeline */
 static gboolean
 testFragmentDownloadErrorCheckDataReceived (GstDashDemuxTestData * testData,
@@ -1402,6 +1410,8 @@ GST_START_TEST (testFragmentDownloadError)
 
 GST_END_TEST;
 
+#endif
+
 /* generate queries to adaptive demux */
 static gboolean
 testQueryCheckDataReceived (GstDashDemuxTestData * testData,
@@ -1526,7 +1536,7 @@ dash_demux_suite (void)
   tcase_add_test (tc_basicTest, testParameters);
   tcase_add_test (tc_basicTest, testSeek);
   tcase_add_test (tc_basicTest, testDownloadError);
-  tcase_add_test (tc_basicTest, testFragmentDownloadError);
+  //tcase_add_test (tc_basicTest, testFragmentDownloadError);
   tcase_add_test (tc_basicTest, testQuery);
 
   tcase_add_unchecked_fixture (tc_basicTest, test_setup, test_teardown);