[libc] Enable the 'string' unit tests to be hermetic
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 2 May 2023 16:58:47 +0000 (11:58 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 2 May 2023 23:51:11 +0000 (18:51 -0500)
commit9a20e024a25ce1e20556dc4e567a9d943bff4c7e
tree08e4a120ebd9a42ac2247bab9dfa5a6bac9d6628
parenta417ee9ccfbc59ac8910e77d3138985240d78e28
[libc] Enable the 'string' unit tests to be hermetic

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

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D149662
libc/test/UnitTest/CMakeLists.txt
libc/test/src/string/CMakeLists.txt
libc/test/src/string/memory_utils/CMakeLists.txt