[farsight2/master] tests: Skip libnice tests if it finds no local candidates

Olivier Crête olivier.crete at collabora.co.uk
Sun Jan 3 16:07:14 PST 2010


---
 tests/check/transmitter/nice.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tests/check/transmitter/nice.c b/tests/check/transmitter/nice.c
index cb931c4..3aafb5f 100644
--- a/tests/check/transmitter/nice.c
+++ b/tests/check/transmitter/nice.c
@@ -107,6 +107,14 @@ set_the_candidates (gpointer user_data)
   gboolean ret;
   GError *error = NULL;
 
+  if (!candidates)
+  {
+    g_debug ("Skipping libnice check because it found NO local candidates");
+    g_atomic_int_set(&running, FALSE);
+    g_main_loop_quit (loop);
+    return FALSE;
+  }
+
   if (force_candidates)
   {
     GList *item = NULL;
-- 
1.5.6.5




More information about the farsight-commits mailing list