This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove ad-hoc modules tests that are now unnecessary
ClosedPublic

Authored by ldionne on Jun 22 2021, 1:58 PM.

Details

Summary

Since we now have modules-enabled CI, it is now redundant to have ad-hoc
tests that check arbitrary things about our modules support. Instead,
the whole test suite should pass with modules enabled, period.

This patch also removes the module cache path workaround: one would
expect that modules work properly without that workaround. If that
isn't the case and we do run into flaky test failures, we can re-enable
the workaround temporarily (but that would be very vexing and we should
fix Clang ASAP if that's the case).

Diff Detail

Event Timeline

ldionne created this revision.Jun 22 2021, 1:58 PM
ldionne requested review of this revision.Jun 22 2021, 1:58 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 22 2021, 1:58 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Quuxplusone added a subscriber: Quuxplusone.
Quuxplusone added inline comments.
libcxx/test/libcxx/modules/cinttypes_exports.compile.pass.cpp
24–28

I'd feel better if the commit message explicitly pointed to an existing libcxx/test/ test that would verify this same behavior (namely, that I can use either int8_t or std::int8_t after including nothing but <cinttypes>). However, IMHO this is still fine to clean up, regardless.

ldionne added inline comments.Jun 22 2021, 4:27 PM
libcxx/test/libcxx/modules/cinttypes_exports.compile.pass.cpp
24–28

See libcxx/test/std/input.output/file.streams/c.files/cinttypes.pass.cpp. For each header we remove in libcxx/test/modules, I grepped for the corresponding test in libcxx/test/std and found one.

This revision was not accepted when it landed; it landed in state Needs Review.Jun 23 2021, 6:43 AM
This revision was automatically updated to reflect the committed changes.
libcxx/test/libcxx/modules/clocale_exports.compile.pass.cpp