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
af6dd8eb
Commit
af6dd8eb
authored
Apr 19, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Apr 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Tweak tests results for w7pro64.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
498e0da0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
heap.c
dlls/kernel32/tests/heap.c
+7
-5
No files found.
dlls/kernel32/tests/heap.c
View file @
af6dd8eb
...
...
@@ -328,10 +328,12 @@ static void test_HeapCreate(void)
ok
(
!!
heap
,
"HeapCreate failed, error %lu
\n
"
,
GetLastError
()
);
ok
(
!
((
ULONG_PTR
)
heap
&
0xffff
),
"wrong heap alignment
\n
"
);
ptr
=
HeapAlloc
(
heap
,
0
,
alloc_size
-
(
0x400
+
0x80
*
sizeof
(
void
*
))
);
/* theshold between failure and success varies, and w7pro64 has a much larger overhead. */
ptr
=
HeapAlloc
(
heap
,
0
,
alloc_size
-
(
0x400
+
0x100
*
sizeof
(
void
*
))
);
ok
(
!!
ptr
,
"HeapAlloc failed, error %lu
\n
"
,
GetLastError
()
);
size
=
HeapSize
(
heap
,
0
,
ptr
);
ok
(
size
==
alloc_size
-
(
0x400
+
0x
8
0
*
sizeof
(
void
*
)),
ok
(
size
==
alloc_size
-
(
0x400
+
0x
10
0
*
sizeof
(
void
*
)),
"HeapSize returned %#Ix, error %lu
\n
"
,
size
,
GetLastError
()
);
ret
=
HeapFree
(
heap
,
0
,
ptr
);
ok
(
ret
,
"HeapFree failed, error %lu
\n
"
,
GetLastError
()
);
...
...
@@ -438,7 +440,7 @@ static void test_HeapCreate(void)
"got Region.dwCommittedSize %#lx
\n
"
,
entries
[
0
].
Region
.
dwCommittedSize
);
todo_wine
ok
(
entries
[
0
].
Region
.
dwUnCommittedSize
==
0x10000
-
entries
[
0
].
Region
.
dwCommittedSize
||
entries
[
0
].
Region
.
dwUnCommittedSize
==
0x
40000
-
entries
[
0
].
Region
.
dwCommittedSize
/* win7 */
,
entries
[
0
].
Region
.
dwUnCommittedSize
==
0x
10000
*
sizeof
(
void
*
)
-
entries
[
0
].
Region
.
dwCommittedSize
/* win7 */
,
"got Region.dwUnCommittedSize %#lx
\n
"
,
entries
[
0
].
Region
.
dwUnCommittedSize
);
todo_wine
ok
(
(
BYTE
*
)
entries
[
0
].
Region
.
lpFirstBlock
==
(
BYTE
*
)
entries
[
0
].
lpData
+
entries
[
0
].
cbData
+
2
*
sizeof
(
void
*
)
||
...
...
@@ -493,7 +495,7 @@ static void test_HeapCreate(void)
ok
(
entries
[
3
].
lpData
==
ptr
,
"got lpData %p
\n
"
,
entries
[
3
].
lpData
);
todo_wine
ok
(
entries
[
3
].
cbData
==
5
*
alloc_size
,
"got cbData %#lx
\n
"
,
entries
[
3
].
cbData
);
ok
(
entries
[
3
].
cbOverhead
==
0
||
entries
[
3
].
cbOverhead
==
0x20
/* win7 */
,
ok
(
entries
[
3
].
cbOverhead
==
0
||
entries
[
3
].
cbOverhead
==
8
*
sizeof
(
void
*
)
/* win7 */
,
"got cbOverhead %#x
\n
"
,
entries
[
3
].
cbOverhead
);
todo_wine
ok
(
entries
[
3
].
iRegionIndex
==
64
,
"got iRegionIndex %d
\n
"
,
entries
[
3
].
iRegionIndex
);
...
...
@@ -520,7 +522,7 @@ static void test_HeapCreate(void)
ok
(
entries
[
4
].
lpData
==
ptr1
,
"got lpData %p
\n
"
,
entries
[
4
].
lpData
);
todo_wine
ok
(
entries
[
4
].
cbData
==
5
*
alloc_size
,
"got cbData %#lx
\n
"
,
entries
[
4
].
cbData
);
ok
(
entries
[
4
].
cbOverhead
==
0
||
entries
[
4
].
cbOverhead
==
0x20
/* win7 */
,
ok
(
entries
[
4
].
cbOverhead
==
0
||
entries
[
4
].
cbOverhead
==
8
*
sizeof
(
void
*
)
/* win7 */
,
"got cbOverhead %#x
\n
"
,
entries
[
4
].
cbOverhead
);
todo_wine
ok
(
entries
[
4
].
iRegionIndex
==
64
,
"got iRegionIndex %d
\n
"
,
entries
[
4
].
iRegionIndex
);
...
...
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