This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Use Python subprocess instead of libc++'s own utilities
ClosedPublic

Authored by ldionne on May 24 2022, 8:15 AM.

Details

Summary

Once we move off entirely from the legacy testing framework, this will
allow removing a bunch of code.

Diff Detail

Event Timeline

ldionne created this revision.May 24 2022, 8:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2022, 8:15 AM
Herald added a subscriber: arichardson. · View Herald Transcript
ldionne requested review of this revision.May 24 2022, 8:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2022, 8:15 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
EricWF accepted this revision.May 24 2022, 11:11 AM
This revision is now accepted and ready to land.May 24 2022, 11:11 AM
EricWF added inline comments.May 24 2022, 11:13 AM
libcxx/utils/libcxx/sym_check/util.py
69–70

I believe this needs capture_output=True to work.

Has this been tested?

EricWF added inline comments.May 24 2022, 11:15 AM
libcxx/utils/libcxx/sym_check/util.py
69–70

Oh, and I think it's missing a .decode() call as well.

ldionne marked 2 inline comments as done.May 25 2022, 6:32 AM
ldionne added inline comments.
libcxx/utils/libcxx/sym_check/util.py
69–70

I did run the check-cxx-abilist target, which should run this unless mistaken.

EDIT: Well, it turns out I was mistaken! This is only called when there *is* a difference in the two ABI lists, and I had only tested with matching ABI lists. Fixed now, thanks for the catch.

ldionne updated this revision to Diff 431964.May 25 2022, 6:32 AM

Fix broken sym_diff.

This revision was landed with ongoing or failed builds.May 25 2022, 6:33 AM
This revision was automatically updated to reflect the committed changes.