This changes the stdlib tests to the new add_libc_test framework.
This applies to all but the exit tests.
Depends on D149691
Paths
| Differential D149705
[libc] Enable the 'stdlib' unit tests to be hermetic ClosedPublic Authored by jhuber6 on May 2 2023, 4:37 PM.
Details Summary This changes the stdlib tests to the new add_libc_test framework. Depends on D149691
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 2 2023, 4:37 PM
This revision is now accepted and ready to land.May 2 2023, 4:44 PM Comment Actions Can you hold off on landing this. I do want to understand why we are still getting link errors even with https://reviews.llvm.org/D149683.
jhuber6 added a child revision: D149745: [libc] Split out FPExceptMatcher from the FP utils.May 3 2023, 6:39 AM sivachandra added inline comments. Closed by commit rGe2f8f77e159b: [libc] Enable the 'stdlib' unit tests to be hermetic (authored by jhuber6). · Explain WhyMay 3 2023, 9:38 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 519045 libc/test/UnitTest/RoundingModeUtils.cpp
libc/test/src/CMakeLists.txt
libc/test/src/stdlib/CMakeLists.txt
|
This will be break when LLVM's libc is being used in the overlay mode and fenv comes from the system libc. I don't have a better suggestion though.