This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove workarounds for re-defining _LIBCPP_ASSERT in the test suite
ClosedPublic

Authored by ldionne on Mar 7 2022, 8:37 AM.

Details

Summary

As a fly-by fix, enable the complexity-changing assertions in __debug_less
only when the full debug mode is enabled, since debugging level 0 is usually
understood to only contain basic assertions that do not change the complexity
of algorithms.

Diff Detail

Event Timeline

ldionne created this revision.Mar 7 2022, 8:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2022, 8:37 AM
Herald added a subscriber: arichardson. · View Herald Transcript
ldionne requested review of this revision.Mar 7 2022, 8:37 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
Quuxplusone added inline comments.
libcxx/test/libcxx/algorithms/debug_less.pass.cpp
8–24

I recommend more like this. (And likewise throughout.)

ldionne updated this revision to Diff 413633.Mar 7 2022, 2:28 PM
ldionne edited the summary of this revision. (Show Details)

Make this change independent of D121123.

ldionne accepted this revision.Mar 8 2022, 7:41 AM

CI passed after retrying the job that had failed due to a flake.

Landing this since this is now an uncontroversial workaround removal -- this is not built on top of the projected new assertion handler work.

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