[farsight2/master] Add test for 10-way conference

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:20:27 PST 2008


---
 tests/check/main/rtpconference.c |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/tests/check/main/rtpconference.c b/tests/check/main/rtpconference.c
index 138d2a9..aa09a74 100644
--- a/tests/check/main/rtpconference.c
+++ b/tests/check/main/rtpconference.c
@@ -196,13 +196,13 @@ _handoff_handler (GstElement *element, GstBuffer *buffer, GstPad *pad,
     "Too many buffers %d > 20", dat->buffer_count);
   */
 
-  for (i = 0; i < count ; i++)
+  for (i = 0; i < count && !stop ; i++)
   {
     GList *item;
 
 
     for (item = g_list_first (dats[i]->streams);
-         item && ! stop;
+         item;
          item = g_list_next (item))
     {
       struct SimpleTestStream *st2 = item->data;
@@ -545,6 +545,14 @@ GST_END_TEST;
 
 
 
+GST_START_TEST (test_rtpconference_ten_way)
+{
+  simple_test (10);
+}
+GST_END_TEST;
+
+
+
 static Suite *
 fsrtpconference_suite (void)
 {
@@ -574,6 +582,11 @@ fsrtpconference_suite (void)
   tcase_add_test (tc_chain, test_rtpconference_three_way);
   suite_add_tcase (s, tc_chain);
 
+  tc_chain = tcase_create ("fsrtpconfence_ten_way");
+  tcase_set_timeout (tc_chain, 20);
+  tcase_add_test (tc_chain, test_rtpconference_ten_way);
+  suite_add_tcase (s, tc_chain);
+
 
   return s;
 }
-- 
1.5.6.5




More information about the farsight-commits mailing list