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
5bb169ad
Commit
5bb169ad
authored
Feb 10, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Feb 10, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Move logic of okChildInt macro into a function.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7260223c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
process.c
dlls/kernel32/tests/process.c
+7
-9
No files found.
dlls/kernel32/tests/process.c
View file @
5bb169ad
...
...
@@ -582,18 +582,16 @@ static void ok_child_stringWA( int line, const char *sect, const char *key,
HeapFree
(
GetProcessHeap
(),
0
,
resultA
);
}
static
void
ok_child_int
(
int
line
,
const
char
*
sect
,
const
char
*
key
,
UINT
expect
)
{
UINT
result
=
GetPrivateProfileIntA
(
sect
,
key
,
!
expect
,
resfile
);
ok_
(
__FILE__
,
line
)(
result
==
expect
,
"%s:%s expected %u, but got %u
\n
"
,
sect
,
key
,
expect
,
result
);
}
#define okChildString(sect, key, expect) ok_child_string(__LINE__, (sect), (key), (expect), 1 )
#define okChildIString(sect, key, expect) ok_child_string(__LINE__, (sect), (key), (expect), 0 )
#define okChildStringWA(sect, key, expect) ok_child_stringWA(__LINE__, (sect), (key), (expect), 1 )
/* using !expect ensures that the test will fail if the sect/key isn't present
* in result file
*/
#define okChildInt(sect, key, expect) \
do { \
UINT result = GetPrivateProfileIntA((sect), (key), !(expect), resfile); \
ok(result == expect, "%s:%s expected %u, but got %u\n", (sect), (key), (UINT)(expect), result); \
} while (0)
#define okChildInt(sect, key, expect) ok_child_int(__LINE__, (sect), (key), (expect))
static
void
test_Startup
(
void
)
{
...
...
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