[libc-commits] [libc] [llvm] [libc] Port process utilities to hermetic mode and enable some tests (PR #209999)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Thu Jul 16 23:17:51 PDT 2026


================
@@ -778,6 +778,18 @@ function(add_libc_hermetic test_name)
       libc.src.string.memset
       libc.src.strings.bcmp
       libc.src.strings.bzero
+      # Syscalls used by death tests.
+      libc.src.poll.poll
----------------
labath wrote:

Unfortunately no, because that only controls EXPECT_DEATH, while this code is also used for EXPECT_EXIT.
There's ENABLE_SUBPROCESS_TESTS, which could theoretically do it, but it's not used consistently (present in only 2 tests), and it's not available in cmake.

https://github.com/llvm/llvm-project/pull/209999


More information about the libc-commits mailing list