Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
dbc043c3
Commit
dbc043c3
authored
Feb 19, 2016
by
André Hentschel
Committed by
Alexandre Julliard
Feb 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Use todo_wine_if() in tests.
Signed-off-by:
André Hentschel
<
nerv@dawncrow.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8b064d69
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
path.c
dlls/shlwapi/tests/path.c
+3
-9
url.c
dlls/shlwapi/tests/url.c
+1
-4
No files found.
dlls/shlwapi/tests/path.c
View file @
dbc043c3
...
...
@@ -286,9 +286,7 @@ static void test_PathCreateFromUrl(void)
for
(
i
=
0
;
i
<
sizeof
(
TEST_PATHFROMURL
)
/
sizeof
(
TEST_PATHFROMURL
[
0
]);
i
++
)
{
len
=
INTERNET_MAX_URL_LENGTH
;
ret
=
pPathCreateFromUrlA
(
TEST_PATHFROMURL
[
i
].
url
,
ret_path
,
&
len
,
0
);
if
(
!
(
TEST_PATHFROMURL
[
i
].
todo
&
0x1
))
ok
(
ret
==
TEST_PATHFROMURL
[
i
].
ret
,
"ret %08x from url %s
\n
"
,
ret
,
TEST_PATHFROMURL
[
i
].
url
);
else
todo_wine
todo_wine_if
(
TEST_PATHFROMURL
[
i
].
todo
&
0x1
)
ok
(
ret
==
TEST_PATHFROMURL
[
i
].
ret
,
"ret %08x from url %s
\n
"
,
ret
,
TEST_PATHFROMURL
[
i
].
url
);
if
(
SUCCEEDED
(
ret
)
&&
TEST_PATHFROMURL
[
i
].
path
)
{
if
(
!
(
TEST_PATHFROMURL
[
i
].
todo
&
0x2
))
{
...
...
@@ -305,9 +303,7 @@ static void test_PathCreateFromUrl(void)
urlW
=
GetWideString
(
TEST_PATHFROMURL
[
i
].
url
);
ret
=
pPathCreateFromUrlW
(
urlW
,
ret_pathW
,
&
len
,
0
);
WideCharToMultiByte
(
CP_ACP
,
0
,
ret_pathW
,
-
1
,
ret_path
,
sizeof
(
ret_path
),
NULL
,
NULL
);
if
(
!
(
TEST_PATHFROMURL
[
i
].
todo
&
0x1
))
ok
(
ret
==
TEST_PATHFROMURL
[
i
].
ret
,
"ret %08x from url L
\"
%s
\"\n
"
,
ret
,
TEST_PATHFROMURL
[
i
].
url
);
else
todo_wine
todo_wine_if
(
TEST_PATHFROMURL
[
i
].
todo
&
0x1
)
ok
(
ret
==
TEST_PATHFROMURL
[
i
].
ret
,
"ret %08x from url L
\"
%s
\"\n
"
,
ret
,
TEST_PATHFROMURL
[
i
].
url
);
if
(
SUCCEEDED
(
ret
)
&&
TEST_PATHFROMURL
[
i
].
path
)
{
if
(
!
(
TEST_PATHFROMURL
[
i
].
todo
&
0x2
))
{
...
...
@@ -326,9 +322,7 @@ static void test_PathCreateFromUrl(void)
len2
=
2
;
ret
=
pPathCreateFromUrlW
(
urlW
,
ret_pathW
,
&
len2
,
0
);
ok
(
ret
==
E_POINTER
,
"ret %08x, expected E_POINTER from url %s
\n
"
,
ret
,
TEST_PATHFROMURL
[
i
].
url
);
if
(
!
(
TEST_PATHFROMURL
[
i
].
todo
&
0x4
))
ok
(
len2
==
len
+
1
,
"got len = %d expected %d from url %s
\n
"
,
len2
,
len
+
1
,
TEST_PATHFROMURL
[
i
].
url
);
else
todo_wine
todo_wine_if
(
TEST_PATHFROMURL
[
i
].
todo
&
0x4
)
ok
(
len2
==
len
+
1
,
"got len = %d expected %d from url %s
\n
"
,
len2
,
len
+
1
,
TEST_PATHFROMURL
[
i
].
url
);
}
...
...
dlls/shlwapi/tests/url.c
View file @
dbc043c3
...
...
@@ -838,10 +838,7 @@ static void test_url_canonicalize(int index, const char *szUrl, DWORD dwFlags, H
ok
(
ret
==
dwExpectReturn
||
ret
==
dwExpectReturnAlt
,
"UrlCanonicalizeA failed: expected=0x%08x or 0x%08x, got=0x%08x, index %d
\n
"
,
dwExpectReturn
,
dwExpectReturnAlt
,
ret
,
index
);
if
(
todo
)
todo_wine
ok
(
strcmp
(
szReturnUrl
,
szExpectUrl
)
==
0
,
"UrlCanonicalizeA dwFlags 0x%08x url '%s' Expected
\"
%s
\"
, but got
\"
%s
\"
, index %d
\n
"
,
dwFlags
,
szUrl
,
szExpectUrl
,
szReturnUrl
,
index
);
else
todo_wine_if
(
todo
)
ok
(
strcmp
(
szReturnUrl
,
szExpectUrl
)
==
0
,
"UrlCanonicalizeA dwFlags 0x%08x url '%s' Expected
\"
%s
\"
, but got
\"
%s
\"
, index %d
\n
"
,
dwFlags
,
szUrl
,
szExpectUrl
,
szReturnUrl
,
index
);
if
(
pUrlCanonicalizeW
)
{
...
...
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