[libcxx] [test] Fix tests of <cuchar> that unexpectedly succeed on windows
authorMartin Storsjö <martin@martin.st>
Sat, 20 Mar 2021 22:25:57 +0000 (00:25 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 31 Mar 2021 06:05:47 +0000 (09:05 +0300)
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

libcxx/test/libcxx/strings/c.strings/version_cuchar.pass.cpp
libcxx/test/std/strings/c.strings/cuchar.pass.cpp

index e14340a..5ded5e7 100644 (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>
index 8fac633..ee436b5 100644 (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>