[Spice-commits] server/tests

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Mar 19 14:00:40 UTC 2019


 server/tests/test-stream-device.c |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit 52f716e1d2b9d93bebb8a5334c2de55a75f9be64
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Tue Mar 19 12:51:21 2019 +0000

    test-stream-device: Remove interface before next loop
    
    We should not reuse the same interface twice as doing so will
    cause dangling pointers.
    Unregister it at every iteration.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/server/tests/test-stream-device.c b/server/tests/test-stream-device.c
index e63952ac..ce37822f 100644
--- a/server/tests/test-stream-device.c
+++ b/server/tests/test-stream-device.c
@@ -342,6 +342,7 @@ static void test_stream_device(TestFixture *fixture, gconstpointer user_data)
         g_assert(message_sizes_curr - message_sizes == 5 || !device_enabled);
 
         check_vmc_error_message();
+        spice_server_remove_interface(&vmc_instance.base);
     }
 }
 


More information about the Spice-commits mailing list