This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] [test] Avoid spurious test breakage in clang-cl-dll configs with newer CMake
ClosedPublic

Authored by mstorsjo on Mar 30 2022, 3:48 AM.

Details

Summary

The pointer.volatile.pass.cpp test was already marked as XFAIL for
mingw-dll (for reasons explained in the comment above it).

The same issue also appears in clang-cl-dll when built with newer
CMake versions. (It didn't appear with older versions of CMake, as
CMake built the library with the clang-cl flag -std:c++latest when
we've requested C++ 20 - which practically built it in c++2b mode with
current clang versions. With current versions of CMake, it passes
-std:c++20 instead.)

As it succeeds/fails dependent on factors we don't
directly control, mark it as UNSUPPORTED instead of XFAIL.

This probably also needs to be backported to the 14.x branch, to
avoid spurious failures there, if the CI runners are upgraded to
a newer version of CMake.

Diff Detail

Event Timeline

mstorsjo created this revision.Mar 30 2022, 3:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2022, 3:48 AM
mstorsjo requested review of this revision.Mar 30 2022, 3:48 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2022, 3:48 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante added inline comments.
libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.volatile.pass.cpp
26

Should we add a TODO that this can be removed when we require the library to build with C++2b?

mstorsjo added inline comments.Mar 30 2022, 9:01 AM
libcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/pointer.volatile.pass.cpp
26

Sure, that sounds like a good idea!

mstorsjo updated this revision to Diff 419173.Mar 30 2022, 9:04 AM

Added the suggested todo.

Mordante accepted this revision.Mar 31 2022, 10:01 AM

Thanks, LGTM!

This revision is now accepted and ready to land.Mar 31 2022, 10:01 AM