[libc++] [test] Disable parts of path.factory.pass.cpp as requiring localization...
authorMarek Kurdej <marek.kurdej@gmail.com>
Fri, 4 Dec 2020 19:04:09 +0000 (20:04 +0100)
committerMarek Kurdej <marek.kurdej@gmail.com>
Fri, 4 Dec 2020 19:04:35 +0000 (20:04 +0100)
It was added in commit 6be11e35d5397ae1c117eb840a969585fdd7d08d, "[libcxx] Implement c++2a char8_t input/output of std::filesystem::path".

libcxx/test/std/input.output/filesystems/class.path/path.nonmember/path.factory.pass.cpp

index 9df81f4..6885c4e 100644 (file)
@@ -49,7 +49,8 @@ int main(int, char**)
     path p = fs::u8path(In3, In3End);
     assert(p == In1);
   }
-#if TEST_STD_VER > 17 && defined(__cpp_char8_t) && defined(_LIBCPP_VERSION)
+#if TEST_STD_VER > 17 && defined(__cpp_char8_t) && defined(_LIBCPP_VERSION) && \
+    !defined(_LIBCPP_HAS_NO_LOCALIZATION)
   const char8_t* u8In1 = u8"abcd/efg";
   const std::u8string u8In2(u8In1);
   const auto u8In3 = u8In2.begin();