[Spice-commits] tests/session.c

Pavel Grunt pgrunt at kemper.freedesktop.org
Wed Oct 19 13:06:07 UTC 2016


 tests/session.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 2528cd907b60c19645c8c063a1eaacd643360634
Author: Pavel Grunt <pgrunt at redhat.com>
Date:   Wed Oct 19 14:35:59 2016 +0200

    test-session: Fix comparison
    
    The test was not executed because G_N_ELEMENTS is 0 for the pointer
    
    Acked-by: Victor Toso <victortoso at redhat.com>

diff --git a/tests/session.c b/tests/session.c
index 09856b3..7ed4a41 100644
--- a/tests/session.c
+++ b/tests/session.c
@@ -170,7 +170,7 @@ static void test_session_uri_good(const TestCase *tests, const guint cases)
     }
 
     /* Set port and tls_port, check URI */
-    for (i = 0; i < G_N_ELEMENTS(tests); i++) {
+    for (i = 0; i < cases; i++) {
         gchar *uri;
 
         s = spice_session_new();


More information about the Spice-commits mailing list