[all-commits] [llvm/llvm-project] e4085a: [sanitizer] Fix prctl unit test on non-SMT systems

Ulrich Weigand via All-commits all-commits at lists.llvm.org
Thu Apr 21 10:32:00 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e4085a012c04ba9e379c18675815b0f76866107b
  Author: Ulrich Weigand <ulrich.weigand at de.ibm.com>
  Date:   2022-04-21 (Thu, 21 Apr 2022)

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

  Log Message:
  [sanitizer] Fix prctl unit test on non-SMT systems

On systems where the kernel supports the PR_SCHED_CORE
interface, but there is no SMT, the prctl call will set
errno to ENODEV, which currently causes the test to fail.

Fix by accepting ENODEV in addition to EINVAL.

More information about the All-commits mailing list