Details
Details
- Reviewers
Mordante ldionne - Group Reviewers
Restricted Project - Commits
- rGf081cc50372f: [libcxx] [test] Fix the locale get_one_wide test for windows and glibc
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Retry the CI, rebased to an older version where there hopefully aren't any other unrelated CI failures.
Comment Actions
SGTM but I'd like to understand why tm_wday can't be tested on Windows.
libcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_one_wide.pass.cpp | ||
---|---|---|
68 | Does Windows lack this tm member? If so please add a comment. |
Comment Actions
Those tests try to parse a date string in a format that corresponds to what strftime("%c") produces. On Windows, the %c time format lacks the leading week day, which means that we must omit it from the input text string in the test, and after parsing it, tm_wday isn't filled in as it wasn't part of the string. I guess I should add a comment that explains this.
Comment Actions
Added a comment to clarify the missing week day in the string and the ifdeffed out check for the tm_wday member.
Does Windows lack this tm member? If so please add a comment.