This patch updates the __support unit tests to be built as hermetic
tests. The only tests we needed to disable were because of the use of
realloc which is not implemented correctly as it doesn't copy the
memory.
Depends on D149745
Paths
| Differential D149750
[libc] Enable the '__support' unit tests to be hermetic ClosedPublic Authored by jhuber6 on May 3 2023, 8:02 AM.
Details Summary This patch updates the __support unit tests to be built as hermetic Depends on D149745
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 3 2023, 8:02 AM
This revision is now accepted and ready to land.May 3 2023, 9:17 AM This revision was landed with ongoing or failed builds.May 3 2023, 9:38 AM Closed by commit rG78d7d62c36f5: [libc] Enable the '__support' unit tests to be hermetic (authored by jhuber6). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 519129 libc/test/src/__support/CMakeLists.txt
libc/test/src/__support/CPP/CMakeLists.txt
libc/test/src/__support/FPUtil/CMakeLists.txt
libc/test/src/__support/File/CMakeLists.txt
libc/test/src/__support/OSUtil/CMakeLists.txt
libc/test/src/__support/OSUtil/linux/x86_64/CMakeLists.txt
libc/test/src/__support/char_vector_test.cpp
|
We do have realloc: https://github.com/llvm/llvm-project/blob/main/libc/test/UnitTest/HermeticTestUtils.cpp#L68