From 4a0a85becc9e19d288b5adcf713cb9e135c7f022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sun, 21 Mar 2021 00:25:57 +0200 Subject: [PATCH] [libcxx] [test] Fix tests of that unexpectedly succeed on windows The tests expect that the 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 --- libcxx/test/libcxx/strings/c.strings/version_cuchar.pass.cpp | 5 +++++ libcxx/test/std/strings/c.strings/cuchar.pass.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/libcxx/test/libcxx/strings/c.strings/version_cuchar.pass.cpp b/libcxx/test/libcxx/strings/c.strings/version_cuchar.pass.cpp index e14340a8e0f4..5ded5e70ba3f 100644 --- a/libcxx/test/libcxx/strings/c.strings/version_cuchar.pass.cpp +++ b/libcxx/test/libcxx/strings/c.strings/version_cuchar.pass.cpp @@ -8,6 +8,11 @@ // // XFAIL: * +// Skip this test on windows. If built on top of the MSVC runtime, the +// header actually does exist (although not provided by us). +// This should be removed once D97870 has landed. +// UNSUPPORTED: windows + // #include diff --git a/libcxx/test/std/strings/c.strings/cuchar.pass.cpp b/libcxx/test/std/strings/c.strings/cuchar.pass.cpp index 8fac63371c0b..ee436b5d06f7 100644 --- a/libcxx/test/std/strings/c.strings/cuchar.pass.cpp +++ b/libcxx/test/std/strings/c.strings/cuchar.pass.cpp @@ -8,6 +8,11 @@ // // XFAIL: libc++ +// Skip this test on windows. If built on top of the MSVC runtime, the +// header actually does exist (although not provided by us). +// This should be removed once D97870 has landed. +// UNSUPPORTED: windows + // #include