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
71decd73
Commit
71decd73
authored
Jan 30, 2010
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow tested functions to return NULL
parent
f7aa8a53
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
src/test/url.c
src/test/url.c
+11
-4
No files found.
src/test/url.c
View file @
71decd73
...
@@ -37,12 +37,19 @@ static void test (conv_t f, const char *in, const char *out)
...
@@ -37,12 +37,19 @@ static void test (conv_t f, const char *in, const char *out)
{
{
char
*
res
;
char
*
res
;
if
(
out
!=
NULL
)
printf
(
"
\"
%s
\"
->
\"
%s
\"
?
\n
"
,
in
,
out
);
printf
(
"
\"
%s
\"
->
\"
%s
\"
?
\n
"
,
in
,
out
);
else
printf
(
"
\"
%s
\"
-> NULL ?
\n
"
,
in
);
res
=
f
(
in
);
res
=
f
(
in
);
if
(
res
==
NULL
)
if
(
res
==
NULL
)
exit
(
1
);
{
if
(
out
==
NULL
)
if
(
strcmp
(
res
,
out
))
return
;
/* good: NULL -> NULL */
puts
(
" ERROR: got NULL"
);
exit
(
2
);
}
if
(
out
==
NULL
||
strcmp
(
res
,
out
))
{
{
printf
(
" ERROR: got
\"
%s
\"\n
"
,
res
);
printf
(
" ERROR: got
\"
%s
\"\n
"
,
res
);
exit
(
2
);
exit
(
2
);
...
...
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