This is an archive of the discontinued LLVM Phabricator instance.

[libc] Remove use of 'assert' from the string tests
ClosedPublic

Authored by jhuber6 on May 2 2023, 8:32 AM.

Details

Summary

Currently we use assert as a stand-in for the typical test assertions.
This is because these functions exist outside of the base test class so
we can't use the typical assertion methods. The presence of these
asserts makes it difficult to compile these tests in a standalone
format. This patch removes all occurrences.

Diff Detail

Event Timeline

jhuber6 created this revision.May 2 2023, 8:32 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 2 2023, 8:32 AM
jhuber6 requested review of this revision.May 2 2023, 8:32 AM
jhuber6 updated this revision to Diff 518863.May 2 2023, 2:35 PM

Remove asserts completely

jhuber6 edited the summary of this revision. (Show Details)May 2 2023, 2:36 PM
sivachandra accepted this revision.May 2 2023, 4:31 PM
This revision is now accepted and ready to land.May 2 2023, 4:31 PM
This revision was automatically updated to reflect the committed changes.