Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
3348a387
Commit
3348a387
authored
Jan 30, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test cases for make_path()
parent
71decd73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
src/test/url.c
src/test/url.c
+14
-0
No files found.
src/test/url.c
View file @
3348a387
...
...
@@ -144,5 +144,19 @@ int main (void)
/*val = fchdir (fd);
assert (val != -1);*/
/* URI to path tests */
#define test( a, b ) test (make_path, a, b)
test
(
"mailto:john@example.com"
,
NULL
);
test
(
"http://www.example.com/file.html#ref"
,
NULL
);
test
(
"file://"
,
NULL
);
test
(
"file:///"
,
"/"
);
test
(
"file://localhost/home/john/music%2Eogg"
,
"/home/john/music.ogg"
);
test
(
"file://localhost/home/john/text#ref"
,
"/home/john/text"
);
test
(
"fd://0foobar"
,
NULL
);
test
(
"fd://0#ref"
,
"/dev/stdin"
);
test
(
"fd://1"
,
"/dev/stdout"
);
test
(
"fd://12345"
,
"/dev/fd/12345"
);
#undef test
return
0
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment