[vlc-commits] test: url: test vlc_UrlParseFixup

Thomas Guillem git at videolan.org
Tue Mar 26 12:06:44 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Mar 26 12:05:19 2019 +0100| [8f0e8fdf72c3da03cf3dfb37ab3f349ac69b6287] | committer: Thomas Guillem

test: url: test vlc_UrlParseFixup

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8f0e8fdf72c3da03cf3dfb37ab3f349ac69b6287
---

 src/test/url.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/test/url.c b/src/test/url.c
index b16a813a92..de2b6fc51c 100644
--- a/src/test/url.c
+++ b/src/test/url.c
@@ -316,6 +316,10 @@ int main (void)
     test_url_parse("http://user%/Oath", "http", NULL, NULL, NULL, 0, "/Oath",
                    NULL);
 
+    /* URIs to fixup */
+    test_url_parse("smb://SERVER:445/SHARE/My file.mp3", "smb", NULL, NULL, "SERVER", 445, NULL, NULL);
+    test_url_parse_fixup("smb://SERVER:445/SHARE/My file.mp3", "smb", NULL, NULL, "SERVER", 445, "/SHARE/My%20file.mp3", NULL);
+
     /* Reference test cases for reference URI resolution */
     static const char *rfc3986_cases[] =
     {



More information about the vlc-commits mailing list