[Spice-devel] [PATCH spice-gtk v2 1/4] test-session: Test alternative way for setting port

Pavel Grunt pgrunt at redhat.com
Wed Oct 12 15:08:23 UTC 2016


Acked-by: Victor Toso <victortoso at redhat.com>
---
 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.10.1



More information about the Spice-devel mailing list