Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5c2cff30
Commit
5c2cff30
authored
Feb 20, 2016
by
Frédéric Delanoy
Committed by
Alexandre Julliard
Feb 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setupapi/tests: Use todo_wine_if() in tests.
Signed-off-by:
Frédéric Delanoy
<
frederic.delanoy@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a8a6f0bd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
28 deletions
+3
-28
parser.c
dlls/setupapi/tests/parser.c
+1
-8
setupcab.c
dlls/setupapi/tests/setupcab.c
+2
-20
No files found.
dlls/setupapi/tests/parser.c
View file @
5c2cff30
...
...
@@ -152,14 +152,7 @@ static void test_invalid_files(void)
if
(
invalid_files
[
i
].
error
)
/* should fail */
{
ok
(
hinf
==
INVALID_HANDLE_VALUE
,
"file %u: Open succeeded
\n
"
,
i
);
if
(
invalid_files
[
i
].
todo
)
todo_wine
{
ok
(
err
==
invalid_files
[
i
].
error
,
"file %u: Bad error %u/%u
\n
"
,
i
,
err
,
invalid_files
[
i
].
error
);
ok
(
err_line
==
invalid_files
[
i
].
err_line
,
"file %u: Bad error line %d/%d
\n
"
,
i
,
err_line
,
invalid_files
[
i
].
err_line
);
}
else
todo_wine_if
(
invalid_files
[
i
].
todo
)
{
ok
(
err
==
invalid_files
[
i
].
error
,
"file %u: Bad error %u/%u
\n
"
,
i
,
err
,
invalid_files
[
i
].
error
);
...
...
dlls/setupapi/tests/setupcab.c
View file @
5c2cff30
...
...
@@ -115,19 +115,10 @@ static void test_invalid_parametersA(void)
ret
=
SetupIterateCabinetA
(
invalid_parameters
[
i
].
CabinetFile
,
0
,
invalid_parameters
[
i
].
MsgHandler
,
NULL
);
ok
(
!
ret
,
"[%d] Expected SetupIterateCabinetA to return 0, got %d
\n
"
,
i
,
ret
);
if
(
invalid_parameters
[
i
].
todo_lasterror
)
{
todo_wine
ok
(
GetLastError
()
==
invalid_parameters
[
i
].
expected_lasterror
,
"[%d] Expected GetLastError() to return %u, got %u
\n
"
,
i
,
invalid_parameters
[
i
].
expected_lasterror
,
GetLastError
());
}
else
{
todo_wine_if
(
invalid_parameters
[
i
].
todo_lasterror
)
ok
(
GetLastError
()
==
invalid_parameters
[
i
].
expected_lasterror
,
"[%d] Expected GetLastError() to return %u, got %u
\n
"
,
i
,
invalid_parameters
[
i
].
expected_lasterror
,
GetLastError
());
}
}
SetLastError
(
0xdeadbeef
);
...
...
@@ -190,19 +181,10 @@ static void test_invalid_parametersW(void)
ret
=
SetupIterateCabinetW
(
invalid_parameters
[
i
].
CabinetFile
,
0
,
invalid_parameters
[
i
].
MsgHandler
,
NULL
);
ok
(
!
ret
,
"[%d] Expected SetupIterateCabinetW to return 0, got %d
\n
"
,
i
,
ret
);
if
(
invalid_parameters
[
i
].
todo_lasterror
)
{
todo_wine
ok
(
GetLastError
()
==
invalid_parameters
[
i
].
expected_lasterror
,
"[%d] Expected GetLastError() to return %u, got %u
\n
"
,
i
,
invalid_parameters
[
i
].
expected_lasterror
,
GetLastError
());
}
else
{
todo_wine_if
(
invalid_parameters
[
i
].
todo_lasterror
)
ok
(
GetLastError
()
==
invalid_parameters
[
i
].
expected_lasterror
,
"[%d] Expected GetLastError() to return %u, got %u
\n
"
,
i
,
invalid_parameters
[
i
].
expected_lasterror
,
GetLastError
());
}
}
SetLastError
(
0xdeadbeef
);
...
...
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