[libcxx] [test] Fix tests of <cuchar> that unexpectedly succeed on windows

The tests expect that the <cuchar> include should fail. When libc++
is built on top of the MSVC runtime, the header does exist provided
by MSVC. Therefore, just mark the test as unsupported on windows,
to avoid tests that unexpectedly succeed.

Differential Revision: https://reviews.llvm.org/D99096
This commit is contained in:
Martin Storsjö 2021-03-21 00:25:57 +02:00
parent 32ca5a037a
commit 4a0a85becc
2 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,11 @@
//
// XFAIL: *
// Skip this test on windows. If built on top of the MSVC runtime, the
// <cuchar> header actually does exist (although not provided by us).
// This should be removed once D97870 has landed.
// UNSUPPORTED: windows
// <cuchar>
#include <cuchar>

View File

@ -8,6 +8,11 @@
//
// XFAIL: libc++
// Skip this test on windows. If built on top of the MSVC runtime, the
// <cuchar> header actually does exist (although not provided by us).
// This should be removed once D97870 has landed.
// UNSUPPORTED: windows
// <cuchar>
#include <cuchar>