This is an archive of the discontinued LLVM Phabricator instance.

[libc] Make string tests compatible with the Fuchsia build
ClosedPublic

Authored by mcgrathr on Mar 17 2023, 6:00 PM.

Details

Summary

Some test code was doing loose conversions caught by compiler
warnings in the Fuchsia build. This included duplicated code
in a few tests that was reconsolidated with the existing header
file copy of the same functions.

The MemoryMatcher abstraction presumes gtest-style matcher support,
which is not available in Fuchsia's zxtest library. It's avoided
in favor of simpler memory-comparing assertions.

Diff Detail

Event Timeline

mcgrathr created this revision.Mar 17 2023, 6:00 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 17 2023, 6:00 PM
mcgrathr requested review of this revision.Mar 17 2023, 6:00 PM
abrachet accepted this revision.Mar 20 2023, 8:42 AM
This revision is now accepted and ready to land.Mar 20 2023, 8:42 AM