mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 17:53:38 +00:00
ntoskrnl/tests: Fix affinity test when there are too many CPUs.
This commit is contained in:
parent
3c9c1ffdba
commit
6ca6bb542e
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue