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
5314fac5
Commit
5314fac5
authored
Sep 12, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Fix affinity test when there are too many CPUs.
parent
8b7baa11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
thread.c
dlls/kernel32/tests/thread.c
+9
-6
No files found.
dlls/kernel32/tests/thread.c
View file @
5314fac5
...
...
@@ -956,12 +956,15 @@ static VOID test_thread_processor(void)
affinity_new
.
Mask
,
affinity
.
Mask
);
/* show that the "all processors" flag is not supported for SetThreadGroupAffinity */
affinity_new
.
Group
=
0
;
affinity_new
.
Mask
=
~
0u
;
SetLastError
(
0xdeadbeef
);
ok
(
!
pSetThreadGroupAffinity
(
curthread
,
&
affinity_new
,
NULL
),
"SetThreadGroupAffinity succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %ld
\n
"
,
GetLastError
());
if
(
sysInfo
.
dwNumberOfProcessors
<
8
*
sizeof
(
DWORD_PTR
))
{
affinity_new
.
Group
=
0
;
affinity_new
.
Mask
=
~
(
DWORD_PTR
)
0
;
SetLastError
(
0xdeadbeef
);
ok
(
!
pSetThreadGroupAffinity
(
curthread
,
&
affinity_new
,
NULL
),
"SetThreadGroupAffinity succeeded
\n
"
);
ok
(
GetLastError
()
==
ERROR_INVALID_PARAMETER
,
"Expected ERROR_INVALID_PARAMETER, got %ld
\n
"
,
GetLastError
());
}
affinity_new
.
Group
=
1
;
/* assumes that you have less than 64 logical processors */
affinity_new
.
Mask
=
0x1
;
...
...
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