[all-commits] [llvm/llvm-project] 02efd7: [Threading] Ensure Tests Reflect Disabled Threads

Sam Elliott via All-commits all-commits at lists.llvm.org
Wed Nov 30 09:03:30 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02efd7d2716ae56ccf3ca0a62b84bb487e8a1221
      https://github.com/llvm/llvm-project/commit/02efd7d2716ae56ccf3ca0a62b84bb487e8a1221
  Author: Archibald Elliott <archibald.elliott at arm.com>
  Date:   2022-11-30 (Wed, 30 Nov 2022)

  Changed paths:
    M llvm/unittests/Support/Threading.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list