[all-commits] [llvm/llvm-project] 0015ba: [libc][test] Fix death test timeouts and dead-code...

lntue via All-commits all-commits at lists.llvm.org
Fri Oct 2 21:51:47 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0015ba584055f39bc729424ae77e3f5543169543
      https://github.com/llvm/llvm-project/commit/0015ba584055f39bc729424ae77e3f5543169543
  Author: lntue <lntue at google.com>
  Date:   2026-10-03 (Sat, 03 Oct 2026)

  Changed paths:
    M libc/test/UnitTest/CMakeLists.txt
    M libc/test/UnitTest/ExecuteFunctionUnix.cpp
    M libc/test/src/math/smoke/AddTest.h
    M libc/test/src/math/smoke/DivTest.h
    M libc/test/src/math/smoke/MulTest.h
    M libc/test/src/math/smoke/SubTest.h
    M utils/bazel/llvm-project-overlay/libc/BUILD.bazel
    M utils/bazel/llvm-project-overlay/libc/test/UnitTest/BUILD.bazel

  Log Message:
  -----------
  [libc][test] Fix death test timeouts and dead-code elimination in math tests. (#227966)

- In `ExecuteFunctionUnix.cpp`, call `prctl(PR_SET_DUMPABLE, 0)` in
child processes to prevent external core dump handlers (such as apport)
from intercepting expected crashes during death tests, eliminating 10s
poll timeouts under parallel lit runs.
- Close `pipe_fds[0]` properly in `invoke_in_subprocess` to avoid
leaking file descriptors.
- In math smoke test templates (`AddTest.h`, `SubTest.h`, `MulTest.h`,
`DivTest.h`), assign test function results to `[[maybe_unused]] volatile
OutType res` to prevent GCC from dead-code eliminating floating point
operations in `test_inexact_results` when FMA optimization is disabled.

Assisted-by: Gemini



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list