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
6ca6bb54
Commit
6ca6bb54
authored
Sep 12, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl/tests: Fix affinity test when there are too many CPUs.
parent
3c9c1ffd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
driver.c
dlls/ntoskrnl.exe/tests/driver.c
+4
-1
No files found.
dlls/ntoskrnl.exe/tests/driver.c
View file @
6ca6bb54
...
...
@@ -2031,7 +2031,10 @@ static void test_affinity(void)
count
=
pKeQueryActiveProcessorCountEx
(
ALL_PROCESSOR_GROUPS
);
ok
(
count
==
cpu_count
,
"Got unexpected count %lu.
\n
"
,
count
);
mask_all_cpus
=
~
((
~
0u
)
<<
cpu_count
);
if
(
cpu_count
>=
8
*
sizeof
(
KAFFINITY
))
mask_all_cpus
=
~
(
KAFFINITY
)
0
;
else
mask_all_cpus
=
((
KAFFINITY
)
1
<<
cpu_count
)
-
1
;
mask
=
pKeQueryActiveProcessors
();
ok
(
mask
==
mask_all_cpus
,
"Got unexpected mask %#Ix.
\n
"
,
mask
);
...
...
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