[libcxx-commits] [libcxx] 248287f - [libc++][CI] fixed convert_thousands_sep_ru_RU for Russian in the libcxx/test/support/locale_helpers.h for AIX

via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 31 10:56:56 PDT 2022


Author: zhijian
Date: 2022-05-31T13:55:59-04:00
New Revision: 248287fe0a776ec50513afce41ee55d9d39a7ceb

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

LOG: [libc++][CI] fixed convert_thousands_sep_ru_RU for Russian in the libcxx/test/support/locale_helpers.h for AIX

Reviewers: David Tenty, Mark de Wever

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

Added: 
    

Modified: 
    libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/get_long_double_ru_RU.pass.cpp
    libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/put_long_double_ru_RU.pass.cpp
    libcxx/test/support/locale_helpers.h

Removed: 
    


################################################################################
diff  --git a/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/get_long_double_ru_RU.pass.cpp b/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/get_long_double_ru_RU.pass.cpp
index 872f5a8ebc24d..e680f2ea8816a 100644
--- a/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/get_long_double_ru_RU.pass.cpp
+++ b/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/get_long_double_ru_RU.pass.cpp
@@ -12,7 +12,6 @@
 // REQUIRES: locale.ru_RU.UTF-8
 
 // XFAIL: glibc-old-ru_RU-decimal-point
-// XFAIL: LIBCXX-AIX-FIXME
 
 // <locale>
 

diff  --git a/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/put_long_double_ru_RU.pass.cpp b/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/put_long_double_ru_RU.pass.cpp
index 827c05120623c..4aea1016e735b 100644
--- a/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/put_long_double_ru_RU.pass.cpp
+++ b/libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/put_long_double_ru_RU.pass.cpp
@@ -12,7 +12,6 @@
 // REQUIRES: locale.ru_RU.UTF-8
 
 // XFAIL: glibc-old-ru_RU-decimal-point
-// XFAIL: LIBCXX-AIX-FIXME
 
 // <locale>
 

diff  --git a/libcxx/test/support/locale_helpers.h b/libcxx/test/support/locale_helpers.h
index c71a74b27b34e..56c4bf9cf29d3 100644
--- a/libcxx/test/support/locale_helpers.h
+++ b/libcxx/test/support/locale_helpers.h
@@ -60,15 +60,15 @@ std::wstring convert_thousands_sep_fr_FR(std::wstring const& in) {
 }
 
 // GLIBC 2.27 uses U+202F NARROW NO-BREAK SPACE as a thousands separator.
-// FreeBSD and Windows use U+00A0 NO-BREAK SPACE.
+// FreeBSD, AIX and Windows use U+00A0 NO-BREAK SPACE.
 std::wstring convert_thousands_sep_ru_RU(std::wstring const& in) {
 #if defined(TEST_HAS_GLIBC)
   return convert_thousands_sep(in, L'\u202F');
-#elif defined(__FreeBSD__) || defined(_WIN32)
+#  elif defined(__FreeBSD__) || defined(_WIN32) || defined(_AIX)
   return convert_thousands_sep(in, L'\u00A0');
-#else
+#  else
   return in;
-#endif
+#  endif
 }
 
 std::wstring negate_en_US(std::wstring s) {


        


More information about the libcxx-commits mailing list