[Spice-devel] [PATCH spice-gtk 2/5] test-session: Test alternative way for setting port

Pavel Grunt pgrunt at redhat.com
Fri May 20 12:50:57 UTC 2016


---
 tests/session.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tests/session.c b/tests/session.c
index 00076f2..a6276c2 100644
--- a/tests/session.c
+++ b/tests/session.c
@@ -24,6 +24,12 @@ static void test_session_uri(void)
         { NULL, "5930",
           "spice://localhost?port=&tls-port=5930",
           "spice://localhost?tls-port=5930" },
+        { "42", NULL,
+          "spice://localhost:42",
+          "spice://localhost?port=42&" },
+        { "42", "5930",
+          "spice://localhost:42?tls-port=5930",
+          "spice://localhost?port=42&tls-port=5930" },
     };
 
     /* Set URI and check URI, port and tls_port */
-- 
2.8.2



More information about the Spice-devel mailing list