[libcxx-commits] [libcxx] d9d2ebb - [libc++][nfc] Use TEST_HAS_NO_WIDE_CHARACTERS.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Wed Feb 9 08:10:19 PST 2022


Author: Mark de Wever
Date: 2022-02-09T17:10:12+01:00
New Revision: d9d2ebbfcb201dc09150d514766ceb669b254a28

URL: https://github.com/llvm/llvm-project/commit/d9d2ebbfcb201dc09150d514766ceb669b254a28
DIFF: https://github.com/llvm/llvm-project/commit/d9d2ebbfcb201dc09150d514766ceb669b254a28.diff

LOG: [libc++][nfc] Use TEST_HAS_NO_WIDE_CHARACTERS.

This avoids using an libc++ internal macro in our tests.

Reviewed By: #libc, Quuxplusone

Differential Revision: https://reviews.llvm.org/D119263

Added: 
    

Modified: 
    libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/default.pass.cpp
    libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/default.pass.cpp
    libcxx/test/std/input.output/string.streams/stringstream.cons/default.pass.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/default.pass.cpp b/libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/default.pass.cpp
index 056c724f38bd9..2a90d5d284f75 100644
--- a/libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/default.pass.cpp
+++ b/libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/default.pass.cpp
@@ -60,7 +60,7 @@ int main(int, char**)
 
 #if TEST_STD_VER >= 11
     test<std::istringstream>();
-#   ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
+#  ifndef TEST_HAS_NO_WIDE_CHARACTERS
     test<std::wistringstream>();
 #   endif
 #endif

diff  --git a/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/default.pass.cpp b/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/default.pass.cpp
index feac1441e8707..92796bb69c78d 100644
--- a/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/default.pass.cpp
+++ b/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/default.pass.cpp
@@ -60,7 +60,7 @@ int main(int, char**)
 
 #if TEST_STD_VER >= 11
     test<std::ostringstream>();
-#   ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
+#  ifndef TEST_HAS_NO_WIDE_CHARACTERS
     test<std::wostringstream>();
 #   endif
 #endif

diff  --git a/libcxx/test/std/input.output/string.streams/stringstream.cons/default.pass.cpp b/libcxx/test/std/input.output/string.streams/stringstream.cons/default.pass.cpp
index 095dbf9c9b2e1..5ce17f5c539fe 100644
--- a/libcxx/test/std/input.output/string.streams/stringstream.cons/default.pass.cpp
+++ b/libcxx/test/std/input.output/string.streams/stringstream.cons/default.pass.cpp
@@ -60,7 +60,7 @@ int main(int, char**)
 
 #if TEST_STD_VER >= 11
     test<std::stringstream>();
-#   ifndef _LIBCPP_HAS_NO_WIDE_CHARACTERS
+#  ifndef TEST_HAS_NO_WIDE_CHARACTERS
     test<std::wstringstream>();
 #   endif
 #endif


        


More information about the libcxx-commits mailing list