This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Refactor max_size.pass.cpp
ClosedPublic

Authored by ldionne on Apr 25 2022, 9:51 AM.

Details

Reviewers
philnik
Mordante
Group Reviewers
Restricted Project
Commits
rG0e2fb8ac84bd: [libc++] Refactor max_size.pass.cpp
Summary

Reorganize the test and simplify the #ifdefs. Fix a typo in powerpc64
as a fly-by, and also add a test for the unstable ABI.

Diff Detail

Event Timeline

ldionne created this revision.Apr 25 2022, 9:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2022, 9:51 AM
Herald added a subscriber: krytarowski. · View Herald Transcript
ldionne requested review of this revision.Apr 25 2022, 9:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 25 2022, 9:51 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Is there any way we could let this test error if it's run in CI and the system isn't listed here? This seems like one of the tests that could easily be forgotten to update when supporting a new platform.

ldionne updated this revision to Diff 425031.Apr 25 2022, 2:32 PM

Fail if we don't know the arch.

philnik accepted this revision.Apr 26 2022, 12:04 AM

LGTM if you update the summary.

This revision is now accepted and ready to land.Apr 26 2022, 12:04 AM
Mordante accepted this revision.Apr 26 2022, 8:48 AM
Mordante added a subscriber: Mordante.

LGTM, but one question.

libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
13

Is there a separate test for ABI v2?

ldionne updated this revision to Diff 425282.Apr 26 2022, 12:25 PM
ldionne marked an inline comment as done.
ldionne edited the summary of this revision. (Show Details)

Address comments.

ldionne added inline comments.Apr 26 2022, 12:26 PM
libcxx/test/libcxx/strings/basic.string/string.capacity/max_size.pass.cpp
13

No, we don't have one right now, but let me try to also test for other ABI versions in this test.

This revision was automatically updated to reflect the committed changes.