[vlc-commits] url: test previous commit
Rémi Denis-Courmont
git at videolan.org
Wed Mar 9 06:04:37 CET 2016
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Mar 9 07:04:22 2016 +0200| [88521ef2b27e8c9d8384142cbb8e5aba611b75de] | committer: Rémi Denis-Courmont
url: test previous commit
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=88521ef2b27e8c9d8384142cbb8e5aba611b75de
---
src/test/url.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/test/url.c b/src/test/url.c
index a164719..ab80186 100644
--- a/src/test/url.c
+++ b/src/test/url.c
@@ -195,6 +195,12 @@ int main (void)
test_url_parse("p://h?o=v", "p", NULL, NULL, "h", 0, NULL, "o=v");
test_url_parse("p://h:123?o=v", "p", NULL, NULL, "h", 123, NULL, "o=v");
test_url_parse("p://u:p@h:123?o=v", "p", "u", "p", "h", 123, NULL, "o=v");
-
+ test_url_parse("p://white%20spaced", "p", NULL, NULL, "white%20spaced", 0,
+ NULL, NULL);
+ test_url_parse("p://h/white%20spaced", "p", NULL, NULL, "h", 0,
+ "/white%20spaced", NULL);
+ /* Invalid URIs */
+ test_url_parse("p://G a r b a g e", "p", NULL, NULL, NULL, 0, NULL, NULL);
+ test_url_parse("p://h/G a r b a g e", "p", NULL, NULL, "h", 0, NULL, NULL);
return 0;
}
More information about the vlc-commits
mailing list