[gupnp-igd] Delete fake WAN server
- From: Olivier CrÃte <Tester src gnome org>
 
- To: commits-list gnome org
 
- Cc: 
 
- Subject: [gupnp-igd] Delete fake WAN server
 
- Date: Mon,  7 Nov 2011 18:03:42 +0000 (UTC)
 
commit c157ab0dcf557d6faf6e0622a86729f483419556
Author: Jens Georg <mail jensge org>
Date:   Sat Nov 5 12:08:08 2011 +0100
    Delete fake WAN server
    
    Prevent wrong answers from simulated UPnP devices originating in a
    previous test-case.
 tests/gtest/gupnp-simple-igd.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/gtest/gupnp-simple-igd.c b/tests/gtest/gupnp-simple-igd.c
index a5c0822..3502d2c 100644
--- a/tests/gtest/gupnp-simple-igd.c
+++ b/tests/gtest/gupnp-simple-igd.c
@@ -316,6 +316,9 @@ run_gupnp_simple_igd_test (GMainContext *mainctx, GUPnPSimpleIgd *igd,
   g_main_loop_run (loop);
   g_main_loop_unref (loop);
 
+  gupnp_root_device_set_available (dev, FALSE);
+  g_object_unref (dev);
+
   if (mainctx)
     g_main_context_pop_thread_default (mainctx);
   g_object_unref (context);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]