[Threading] Ensure Tests Reflect Disabled Threads
authorArchibald Elliott <archibald.elliott@arm.com>
Wed, 30 Nov 2022 15:18:14 +0000 (15:18 +0000)
committerArchibald Elliott <archibald.elliott@arm.com>
Wed, 30 Nov 2022 17:02:49 +0000 (17:02 +0000)
commit02efd7d2716ae56ccf3ca0a62b84bb487e8a1221
treeeab5374d99bd8ebeb6ae6a32474c7044b8bd90be
parentd258021c0859d8a2410ec344f1f9b2391a5162b2
[Threading] Ensure Tests Reflect Disabled Threads

D137836 changed what llvm::get_physical_cores returns when threads are
disabled, to bring it inline with the other parts of Threading. It now
returns the value for "unknown" when threading is disabled.

This commit updates the tests (which are failing on some platforms), to
also reflect this change.

Differential Revision: https://reviews.llvm.org/D139015
llvm/unittests/Support/Threading.cpp