This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Get rid of _LIBCPP_HAS_OPEN_WITH_WCHAR in the test suite
ClosedPublic

Authored by ldionne on Oct 4 2022, 8:30 AM.

Diff Detail

Event Timeline

ldionne created this revision.Oct 4 2022, 8:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2022, 8:30 AM
Herald added a subscriber: arichardson. · View Herald Transcript
ldionne requested review of this revision.Oct 4 2022, 8:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 4 2022, 8:30 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
philnik accepted this revision.Oct 4 2022, 8:43 AM
philnik added a subscriber: philnik.

LGTM % comment.

libcxx/test/libcxx/input.output/file.streams/fstreams/wide_temp_file.h
18 ↗(On Diff #465024)

Since we are in the test suite I'd rather use TEST_DIAGNOSTIC_PUSH, TEST_CLANG_DIAGNOSTIC_IGNORED and TEST_DIAGNOSTIC_POP.

This revision is now accepted and ready to land.Oct 4 2022, 8:43 AM
ldionne updated this revision to Diff 465069.Oct 4 2022, 10:17 AM
ldionne marked an inline comment as done.

Remove libc++ macros from tests.

libcxx/test/libcxx/input.output/file.streams/fstreams/wide_temp_file.h
18 ↗(On Diff #465024)

Thanks, I forgot we had those.

Mordante accepted this revision.Oct 4 2022, 11:04 AM
Mordante added a subscriber: Mordante.

LGTM modulo one comment.

libcxx/test/libcxx/input.output/file.streams/fstreams/fstream.members/open_wchar_pointer.pass.cpp
23

I'm not fond of include paths containing .. since it may include files at unexpected locations.
How about moving this file to the test/support directory instead?

ldionne updated this revision to Diff 465413.Oct 5 2022, 8:26 AM
ldionne marked an inline comment as done.

Address comments

This revision was landed with ongoing or failed builds.Oct 5 2022, 8:27 AM
This revision was automatically updated to reflect the committed changes.
ldionne added inline comments.Oct 5 2022, 8:27 AM
libcxx/test/libcxx/input.output/file.streams/fstreams/fstream.members/open_wchar_pointer.pass.cpp
23

I can do that, but I'm not sure how this can end up selecting a file at an unexpected location, since the current directory is always the first path that the preprocessor looks in for "" style includes.

Mordante added inline comments.Oct 5 2022, 9:57 AM
libcxx/test/libcxx/input.output/file.streams/fstreams/fstream.members/open_wchar_pointer.pass.cpp
23

I've had issues with .. in the past, but it no longer occur with newer compilers.