This is an archive of the discontinued LLVM Phabricator instance.

[libc++][test] cleanup in formatter.h
ClosedPublic

Authored by CaseyCarter on Jan 10 2023, 5:49 PM.

Details

Reviewers
Mordante
Group Reviewers
Restricted Project
Commits
rG0d91b0505214: [libc++][test] cleanup in formatter.h
Summary
  • Silence warnings for unused parameters / variables
  • There's no reason to output unexpected exceptions only for libc++

Diff Detail

Event Timeline

CaseyCarter created this revision.Jan 10 2023, 5:49 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 10 2023, 5:49 PM
CaseyCarter requested review of this revision.Jan 10 2023, 5:49 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptJan 10 2023, 5:49 PM

I've been working on a more generic way for test validation, so I probably will change this code in the near future.
But the current version is an improvement, LGTM thanks!

Note the CI errors are unrelated.

libcxx/test/std/time/time.syn/formatter_tests.h
98

Nice catch, usually I have tests where I validate e.what() == expected which is libc++ specific. This one indeed is generic.

Mordante accepted this revision.Jan 11 2023, 9:03 AM
This revision is now accepted and ready to land.Jan 11 2023, 9:03 AM
This revision was landed with ongoing or failed builds.Jan 11 2023, 12:57 PM
This revision was automatically updated to reflect the committed changes.