This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Refactor std::function tests
ClosedPublic

Authored by ldionne on Nov 25 2022, 11:24 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG902e28def669: [libc++] Refactor .compile.fail.cpp tests for std::function
Summary

Some of those .compile.fail.cpp tests had become incorrect and they
were not testing anything. In general, .compile.fail.cpp tests are
bad because they make it way too easy to write garbage tests. Indeed,
the test could fail to compile due to any reason whatsoever (even a
typo) and it would appear to work correctly.

Diff Detail

Event Timeline

ldionne created this revision.Nov 25 2022, 11:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 25 2022, 11:24 AM
ldionne requested review of this revision.Nov 25 2022, 11:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 25 2022, 11:24 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript

Could you mention in the commit message that you are refactoring the .fail.cpp tests specifically?

Could you mention in the commit message that you are refactoring the .fail.cpp tests specifically?

Will do upon committing.

ldionne accepted this revision.Dec 14 2022, 7:55 AM

CI issues were flake, shipping.

This revision is now accepted and ready to land.Dec 14 2022, 7:55 AM
This revision was landed with ongoing or failed builds.Dec 14 2022, 7:56 AM
This revision was automatically updated to reflect the committed changes.