This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Fix the new alloc tests for Windows
ClosedPublic

Authored by mstorsjo on May 24 2023, 12:56 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG684facbb43ea: [libcxx] [test] Fix the new alloc tests for Windows
Summary

Use ASSERT_WITH_OPERATOR_NEW_FALLBACKS where relevant to waive
the known cases where operator new isn't overridden as expected,
in MinGW DLL configurations.

Clarify the reason for why the fallback in
new.delete.array/new.size_align_nothrow.replace.indirect doesn't
work as expected (which could be considered a vcruntime bug).

Diff Detail

Event Timeline

mstorsjo created this revision.May 24 2023, 12:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 12:56 AM
mstorsjo requested review of this revision.May 24 2023, 12:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 24 2023, 12:56 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
mstorsjo added inline comments.May 24 2023, 1:17 AM
libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new.size_nothrow.replace.indirect.pass.cpp
18
ldionne accepted this revision.May 26 2023, 8:17 AM

Thanks for the diligence!

LGTM with a small comment.

libcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new.size_nothrow.replace.indirect.pass.cpp
18

Can you add a link to the bug report in the comment?

This revision is now accepted and ready to land.May 26 2023, 8:17 AM
This revision was automatically updated to reflect the committed changes.