This is an archive of the discontinued LLVM Phabricator instance.

[libc] Enable the 'string' unit tests to be hermetic
ClosedPublic

Authored by jhuber6 on May 2 2023, 10:00 AM.

Details

Summary

This changes over the string unit tests to the new add_libc_test
framework. The one test that wasn't changes was the memory utils because
it overran the static buffer used for the hermetic test's bump pointer.

Depends on D149656

Diff Detail

Event Timeline

jhuber6 created this revision.May 2 2023, 10:00 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 2 2023, 10:00 AM
jhuber6 requested review of this revision.May 2 2023, 10:00 AM
lntue added inline comments.May 2 2023, 10:36 AM
libc/test/src/CMakeLists.txt
29 ↗(On Diff #518781)

Is this related to this change?

jhuber6 added inline comments.May 2 2023, 10:37 AM
libc/test/src/CMakeLists.txt
29 ↗(On Diff #518781)

Ah, this was for moving stdlib as well but was included in this patch. I'll remove it.

jhuber6 updated this revision to Diff 518836.May 2 2023, 12:51 PM

Remove unrelated change.

sivachandra accepted this revision.May 2 2023, 4:36 PM
This revision is now accepted and ready to land.May 2 2023, 4:36 PM
This revision was automatically updated to reflect the committed changes.