summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPavel Grunt <pgrunt@redhat.com>2016-06-01 10:04:46 +0200
committerPavel Grunt <pgrunt@redhat.com>2016-06-02 10:26:10 +0200
commit85051b06c1f04b206c00bb7f674a9a29bfb19594 (patch)
tree2e90d983de783957f2b60683a881bd24c47fed26 /tests
parent024eccefba506f57fbff837c6d75864c51ed2add (diff)
spice-uri: Do not allow empty port string
Related: rhbz#1335239 Acked-by: Victor Toso <victortoso@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/uri.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/uri.c b/tests/uri.c
index d57f072..ee3d061 100644
--- a/tests/uri.c
+++ b/tests/uri.c
@@ -75,6 +75,7 @@ static void test_spice_uri_ipv4_bad(void)
{"http://", "http", NULL, 3128, NULL, NULL, "Invalid hostname in uri address"},
{"http://127.0.0.1:port", "http", "127.0.0.1", 3128, NULL, NULL,
"Invalid uri port: port"},
+ {"http://127.0.0.1:", "http", "127.0.0.1", 3128, NULL, NULL, "Missing uri port"},
};
test_spice_uri_bad(invalid_test_cases, G_N_ELEMENTS(invalid_test_cases));