This is an archive of the discontinued LLVM Phabricator instance.

[lldb][test] Remove tests relying on deprecated std::char_traits specializations
ClosedPublic

Authored by Michael137 on Aug 10 2023, 11:05 AM.

Details

Summary

(motivated by test failures after D157058)

With D157058 the base template for std::char_traits was removed from
libc++. Quoting the release notes:

The base template for ``std::char_traits`` has been removed. If you are using
``std::char_traits`` with types other than ``char``, ``wchar_t``, ``char8_t``,
``char16_t``, ``char32_t`` or a custom character type for which you
specialized ``std::char_traits``, your code will no longer work.

This patch simply removes all such instantiations to make sure the
tests that run against the latest libc++ version pass.

One could try testing the existence of this base template from within
the test source files but this doesn't seem like something we want
support.

Diff Detail

Event Timeline

Michael137 created this revision.Aug 10 2023, 11:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 10 2023, 11:05 AM
Michael137 requested review of this revision.Aug 10 2023, 11:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 10 2023, 11:05 AM
JDevlieghere accepted this revision.Aug 10 2023, 11:28 AM

If this was important we could put this behind a define, break up the test and conditionally skip it based on the libc++ version. But I personally don't think that's worth it for this. LGTM.

This revision is now accepted and ready to land.Aug 10 2023, 11:28 AM