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
de16a00f
Commit
de16a00f
authored
Jun 17, 2004
by
Stefan Leichter
Committed by
Alexandre Julliard
Jun 17, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the GetPrivateProfileIntA tests for the win9x platform.
parent
4000d1d2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
27 deletions
+29
-27
profile.c
dlls/kernel/tests/profile.c
+29
-27
No files found.
dlls/kernel/tests/profile.c
View file @
de16a00f
...
@@ -36,36 +36,37 @@ struct _profileInt {
...
@@ -36,36 +36,37 @@ struct _profileInt {
LPCSTR
iniFile
;
LPCSTR
iniFile
;
INT
defaultVal
;
INT
defaultVal
;
UINT
result
;
UINT
result
;
UINT
result9x
;
};
};
static
void
test_profile_int
(
void
)
static
void
test_profile_int
(
void
)
{
{
struct
_profileInt
profileInt
[]
=
{
struct
_profileInt
profileInt
[]
=
{
{
NULL
,
NULL
,
NULL
,
NULL
,
70
,
0
},
/* 0 */
{
NULL
,
NULL
,
NULL
,
NULL
,
70
,
0
,
0
},
/* 0 */
{
NULL
,
NULL
,
NULL
,
TESTFILE
,
-
1
,
4294967295U
},
{
NULL
,
NULL
,
NULL
,
TESTFILE
,
-
1
,
4294967295U
,
0
},
{
NULL
,
NULL
,
NULL
,
TESTFILE
,
1
,
1
},
{
NULL
,
NULL
,
NULL
,
TESTFILE
,
1
,
1
,
0
},
{
SECTION
,
NULL
,
NULL
,
TESTFILE
,
-
1
,
4294967295U
},
{
SECTION
,
NULL
,
NULL
,
TESTFILE
,
-
1
,
4294967295U
,
0
},
{
SECTION
,
NULL
,
NULL
,
TESTFILE
,
1
,
1
},
{
SECTION
,
NULL
,
NULL
,
TESTFILE
,
1
,
1
,
0
},
{
NULL
,
KEY
,
NULL
,
TESTFILE
,
-
1
,
4294967295U
},
/* 5 */
{
NULL
,
KEY
,
NULL
,
TESTFILE
,
-
1
,
4294967295U
,
0
},
/* 5 */
{
NULL
,
KEY
,
NULL
,
TESTFILE
,
1
,
1
},
{
NULL
,
KEY
,
NULL
,
TESTFILE
,
1
,
1
,
0
},
{
SECTION
,
KEY
,
NULL
,
TESTFILE
,
-
1
,
4294967295U
},
{
SECTION
,
KEY
,
NULL
,
TESTFILE
,
-
1
,
4294967295U
,
4294967295U
},
{
SECTION
,
KEY
,
NULL
,
TESTFILE
,
1
,
1
},
{
SECTION
,
KEY
,
NULL
,
TESTFILE
,
1
,
1
,
1
},
{
SECTION
,
KEY
,
"-1"
,
TESTFILE
,
-
1
,
4294967295U
},
{
SECTION
,
KEY
,
"-1"
,
TESTFILE
,
-
1
,
4294967295U
,
4294967295U
},
{
SECTION
,
KEY
,
"-1"
,
TESTFILE
,
1
,
4294967295U
},
/* 10 */
{
SECTION
,
KEY
,
"-1"
,
TESTFILE
,
1
,
4294967295U
,
4294967295U
},
/* 10 */
{
SECTION
,
KEY
,
"1"
,
TESTFILE
,
-
1
,
1
},
{
SECTION
,
KEY
,
"1"
,
TESTFILE
,
-
1
,
1
,
1
},
{
SECTION
,
KEY
,
"1"
,
TESTFILE
,
1
,
1
},
{
SECTION
,
KEY
,
"1"
,
TESTFILE
,
1
,
1
,
1
},
{
SECTION
,
KEY
,
"+1"
,
TESTFILE
,
-
1
,
1
},
{
SECTION
,
KEY
,
"+1"
,
TESTFILE
,
-
1
,
1
,
0
},
{
SECTION
,
KEY
,
"+1"
,
TESTFILE
,
1
,
1
},
{
SECTION
,
KEY
,
"+1"
,
TESTFILE
,
1
,
1
,
0
},
{
SECTION
,
KEY
,
"4294967296"
,
TESTFILE
,
-
1
,
0
},
/* 15 */
{
SECTION
,
KEY
,
"4294967296"
,
TESTFILE
,
-
1
,
0
,
0
},
/* 15 */
{
SECTION
,
KEY
,
"4294967296"
,
TESTFILE
,
1
,
0
},
{
SECTION
,
KEY
,
"4294967296"
,
TESTFILE
,
1
,
0
,
0
},
{
SECTION
,
KEY
,
"4294967297"
,
TESTFILE
,
-
1
,
1
},
{
SECTION
,
KEY
,
"4294967297"
,
TESTFILE
,
-
1
,
1
,
1
},
{
SECTION
,
KEY
,
"4294967297"
,
TESTFILE
,
1
,
1
},
{
SECTION
,
KEY
,
"4294967297"
,
TESTFILE
,
1
,
1
,
1
},
{
SECTION
,
KEY
,
"-4294967297"
,
TESTFILE
,
-
1
,
4294967295U
},
{
SECTION
,
KEY
,
"-4294967297"
,
TESTFILE
,
-
1
,
4294967295U
,
4294967295U
},
{
SECTION
,
KEY
,
"-4294967297"
,
TESTFILE
,
1
,
4294967295U
},
/* 20 */
{
SECTION
,
KEY
,
"-4294967297"
,
TESTFILE
,
1
,
4294967295U
,
4294967295U
},
/* 20 */
{
SECTION
,
KEY
,
"42A94967297"
,
TESTFILE
,
-
1
,
42
},
{
SECTION
,
KEY
,
"42A94967297"
,
TESTFILE
,
-
1
,
42
,
42
},
{
SECTION
,
KEY
,
"42A94967297"
,
TESTFILE
,
1
,
42
},
{
SECTION
,
KEY
,
"42A94967297"
,
TESTFILE
,
1
,
42
,
42
},
{
SECTION
,
KEY
,
"B4294967297"
,
TESTFILE
,
-
1
,
0
},
{
SECTION
,
KEY
,
"B4294967297"
,
TESTFILE
,
-
1
,
0
,
0
},
{
SECTION
,
KEY
,
"B4294967297"
,
TESTFILE
,
1
,
0
},
{
SECTION
,
KEY
,
"B4294967297"
,
TESTFILE
,
1
,
0
,
0
},
};
};
int
i
,
num_test
=
(
sizeof
(
profileInt
)
/
sizeof
(
struct
_profileInt
));
int
i
,
num_test
=
(
sizeof
(
profileInt
)
/
sizeof
(
struct
_profileInt
));
UINT
res
;
UINT
res
;
...
@@ -79,8 +80,9 @@ static void test_profile_int(void)
...
@@ -79,8 +80,9 @@ static void test_profile_int(void)
res
=
GetPrivateProfileIntA
(
profileInt
[
i
].
section
,
profileInt
[
i
].
key
,
res
=
GetPrivateProfileIntA
(
profileInt
[
i
].
section
,
profileInt
[
i
].
key
,
profileInt
[
i
].
defaultVal
,
profileInt
[
i
].
iniFile
);
profileInt
[
i
].
defaultVal
,
profileInt
[
i
].
iniFile
);
ok
(
res
==
profileInt
[
i
].
result
,
"test<%02d>: ret<%010u> exp<%010u>
\n
"
,
ok
((
res
==
profileInt
[
i
].
result
)
||
(
res
==
profileInt
[
i
].
result9x
),
i
,
res
,
profileInt
[
i
].
result
);
"test<%02d>: ret<%010u> exp<%010u><%010u>
\n
"
,
i
,
res
,
profileInt
[
i
].
result
,
profileInt
[
i
].
result9x
);
}
}
DeleteFileA
(
TESTFILE
);
DeleteFileA
(
TESTFILE
);
...
...
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