This is an archive of the discontinued LLVM Phabricator instance.

[libc++][lit][AIX] Port tests for getting time to AIX
ClosedPublic

Authored by xingxue on Jun 17 2022, 12:02 PM.

Details

Summary

This patch ports libc++ LIT test cases for getting time in various locales to AIX.

Diff Detail

Event Timeline

xingxue created this revision.Jun 17 2022, 12:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2022, 12:02 PM
xingxue requested review of this revision.Jun 17 2022, 12:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2022, 12:02 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision as: philnik.Jun 17 2022, 12:17 PM

LGTM FWIW. I think @Mordante has worked on locales a bit more recently.

Thanks for working on this!

libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_one.pass.cpp
187

Is it not possible to add a time here? If it's not possible please add a comment to clarify it's not possible to set a time.

xingxue updated this revision to Diff 438018.Jun 17 2022, 12:58 PM

Added a comment in test case get_one.pass.cpp to explain the reason why the time field is omitted in the const definition for locale zh_CN.UTF-8.

xingxue marked an inline comment as done.Jun 17 2022, 1:00 PM
xingxue added inline comments.
libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_one.pass.cpp
187

Thanks for the comment. Added a comment to explain the reason why the time field is omitted.

xingxue updated this revision to Diff 438023.Jun 17 2022, 1:05 PM
xingxue marked an inline comment as done.

Added missing "of" in the comment.

Mordante accepted this revision.Jun 18 2022, 3:08 AM

LGTM, but please wait for approval of an AIX maintainer.

libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_one.pass.cpp
190

Thanks, great comment!

This revision is now accepted and ready to land.Jun 18 2022, 3:08 AM

Thanks very much, @Mordante and @philnik! There isn't an AIX maintainer IIUC but I will wait a couple of days to see if other reviewers have any comments. Thanks again!

Thanks very much, @Mordante and @philnik! There isn't an AIX maintainer IIUC but I will wait a couple of days to see if other reviewers have any comments. Thanks again!

You've added some of the people regularly working on AIX and @daltenty also works on AIX.

Thanks very much, @Mordante and @philnik! There isn't an AIX maintainer IIUC but I will wait a couple of days to see if other reviewers have any comments. Thanks again!

You've added some of the people regularly working on AIX and @daltenty also works on AIX.

Thanks, I see what you mean. Yeah, they are my colleagues.

This revision was automatically updated to reflect the committed changes.