summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2021-04-06 01:10:30 +0200
committerMarton Balint <cus@passwd.hu>2021-04-07 22:14:56 +0200
commitfb4da90fecdefa2508618ca835cd0250be940e04 (patch)
tree54858610d495c24ce27480a16a2a6c37cd4e48c1 /tests
parent5dc5f289cefe67457bd16f1950c56911e926385f (diff)
avformat/url: add ff_make_absolulte_url2 to be able to test windows path cases
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/fate/url20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ref/fate/url b/tests/ref/fate/url
index 08e80def7d..8489d10968 100644
--- a/tests/ref/fate/url
+++ b/tests/ref/fate/url
@@ -79,6 +79,26 @@ Testing ff_make_absolute_url:
http://server/foo/bar ..doubledotfile => http://server/foo/..doubledotfile
http://server/foo/bar double..dotfile => http://server/foo/double..dotfile
http://server/foo/bar doubledotfile.. => http://server/foo/doubledotfile..
+ file1 file2 => file2
+ dir/file1 file2 => dir/file2
+ dir/file1 ../file2 => dir/../file2
+ dir\file1 file2 => file2
+ dir\file1 file2 DOS dir\file2
+ \\srv\shr\file ..\..\dummy => ..\..\dummy
+ \\srv\shr\file ..\..\dummy DOS \\srv\shr\..\..\dummy
+ \\srv\shr\file dummy => dummy
+ \\srv\shr\file dummy DOS \\srv\shr\dummy
+ \\srv\shr\file \\srv2\shr2\file2 => \\srv2\shr2\file2
+ \\srv\shr\file d:/file => d:/file
+ C:\dir\a ..\file => C:..\file
+ C:\dir\a ..\file DOS C:\dir\..\file
+ C:\dir\a \\srv\shr\file => C:\\srv\shr\file
+ C:\dir\a \\srv\shr\file DOS \\srv\shr\file
+ C:\dir\a d:\file => d:\file
+ http://a/b \\srv\shr\file => http://a/\\srv\shr\file
+ http://a/b //srv/shr/file => http://srv/shr/file
+ http://a/b d:\file => d:\file
+ http://a/b C:/file => C:/file
http://a/b/c/d;p?q g:h => g:h
http://a/b/c/d;p?q g => http://a/b/c/g
http://a/b/c/d;p?q ./g => http://a/b/c/g