[all-commits] [llvm/llvm-project] d231ef: [compiler-rt] Relax pthread_getaffinity test to ac...

David Spickett via All-commits all-commits at lists.llvm.org
Mon Oct 17 03:45:48 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d231efe1ee1102e10cef1dd294778ccbea103e9c
      https://github.com/llvm/llvm-project/commit/d231efe1ee1102e10cef1dd294778ccbea103e9c
  Author: David Spickett <david.spickett at linaro.org>
  Date:   2022-10-17 (Mon, 17 Oct 2022)

  Changed paths:
    M compiler-rt/test/sanitizer_common/TestCases/Linux/pthread_getaffinity_np.cpp

  Log Message:
  -----------
  [compiler-rt] Relax pthread_getaffinity test to account for cgroups/docker

Fixes #58283

When running in a docker container you can have fewer cores assigned
to you than get_nrpoc would suggest.

Since the test just wants to know that interception worked, allow
any result > 0 and <= the global core count.

Reviewed By: MaskRay, vitalybuka

Differential Revision: https://reviews.llvm.org/D135677




More information about the All-commits mailing list