[farsight2/master] Don't check the buffers for the stun test

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


---
 tests/check/transmitter/rawudp.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/check/transmitter/rawudp.c b/tests/check/transmitter/rawudp.c
index 3345bd2..ef67a44 100644
--- a/tests/check/transmitter/rawudp.c
+++ b/tests/check/transmitter/rawudp.c
@@ -231,12 +231,12 @@ _handoff_handler (GstElement *element, GstBuffer *buffer, GstPad *pad,
 
   if (buffer_count[0] == 20 && buffer_count[1] == 20) {
     /* TEST OVER */
-    ts_fail_unless (buffer_count[0] == received_known[0] &&
-        buffer_count[1] == received_known[1], "Some known buffers from known"
-        " sources have not been reported (%d != %u || %d != %u)",
-        buffer_count[0], received_known[0],
-        buffer_count[1], received_known[1]);
-
+    if (has_stun)
+      ts_fail_unless (buffer_count[0] == received_known[0] &&
+          buffer_count[1] == received_known[1], "Some known buffers from known"
+          " sources have not been reported (%d != %u || %d != %u)",
+          buffer_count[0], received_known[0],
+          buffer_count[1], received_known[1]);
     g_atomic_int_set(&running, FALSE);
     g_main_loop_quit (loop);
   }
-- 
1.5.6.5




More information about the farsight-commits mailing list