This is an archive of the discontinued LLVM Phabricator instance.

[llvm][TextAPI/MachO] Extend TBD_V3 unittest to verify writing
ClosedPublic

Authored by JDevlieghere on Jan 23 2020, 11:08 PM.

Details

Summary

The existing unit tests cover a wide variety of reading TBD files but lack coverages on the writing side. Case in point is the macCatalyst case (D73325) which we're able to read, but not write. This patch extends the unit test dealing with valid input to write their content again to verify the writer.

Diff Detail

Event Timeline

JDevlieghere created this revision.Jan 23 2020, 11:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 23 2020, 11:08 PM
Herald added a subscriber: dexonsmith. · View Herald Transcript

Unit tests: unknown.

clang-tidy: fail. clang-tidy found 10 errors and 1 warnings. 0 of them are added as review comments below (why?).

clang-format: fail. Please format your changes with clang-format by running git-clang-format HEAD^ or applying this patch.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

cishida accepted this revision.Jan 23 2020, 11:14 PM

small comment, otherwise LGTM

llvm/unittests/TextAPI/TextStubV3Tests.cpp
332

maybe add a comment about why this #if ed out.

This revision is now accepted and ready to land.Jan 23 2020, 11:14 PM

small comment, otherwise LGTM

Thanks for the quick review!

This revision was automatically updated to reflect the committed changes.