[libc-commits] [libc] [libc] Properly clear out errno in tests that check its value. (PR #131650)

Alexey Samsonov via libc-commits libc-commits at lists.llvm.org
Mon Mar 17 11:14:18 PDT 2025


vonosmas wrote:

One potential problem that I see is that llvm-libc tests actually have a framework selector in `libc/test/UnitTest/Test.h` -- and TEST(LlvmLibc<...>, ) macro can be picked up either ZxTest, or GTest, or llvm-libc own internal framework. We can only change the latter to clear out errno values, so I'm afraid this approach would not work.

Adding @frobtech  to confirm.

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


More information about the libc-commits mailing list