[libc-commits] [libc] [libc] Expand usage of libc null checks. (PR #116262)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Thu Dec 19 10:31:20 PST 2024


nickdesaulniers wrote:

@michaelrj-google pointed out to me that any tests that you add usage of `EXPECT_DEATH` or `ASSERT_DEATH`, you'll need to add `UNIT_TEST_ONLY` to their cmake `add_libc_test` invocation.

Example: https://github.com/llvm/llvm-project/blob/28865769440756138a88a9c8e8b72b1f5d8db715/libc/test/src/stdlib/CMakeLists.txt#L409

Sounds like that should disable the hermetic test for that function, which is probably fine.

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


More information about the libc-commits mailing list