[libc++][CI] AIX does not have alternative for time_put_byname
authorzhijian <zhijian@ca.ibm.com>
Tue, 31 May 2022 18:20:34 +0000 (14:20 -0400)
committerzhijian <zhijian@ca.ibm.com>
Tue, 31 May 2022 18:20:34 +0000 (14:20 -0400)
Reviewers: David Tenty, Mark de Wever

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

libcxx/test/std/localization/locale.categories/category.time/locale.time.put.byname/put1.pass.cpp

index c1c5d37..521dbb8 100644 (file)
@@ -8,7 +8,6 @@
 //
 // NetBSD does not support LC_TIME at the moment
 // XFAIL: netbsd
-// XFAIL: LIBCXX-AIX-FIXME
 
 // REQUIRES: locale.en_US.UTF-8
 // REQUIRES: locale.fr_FR.UTF-8
@@ -83,7 +82,7 @@ int main(int, char**)
         cpp17_output_iterator<char*> iter =
             f.put(cpp17_output_iterator<char*>(str), ios, '*', &t, pat.data(), pat.data() + pat.size());
         std::string ex(str, base(iter));
-#if defined(_WIN32) ||  defined(__APPLE__)
+#if defined(_WIN32) || defined(__APPLE__) || defined(_AIX)
                // These platforms have no alternative
         assert(ex == "Today is \xE5\x9C\x9F\xE6\x9B\x9C\xE6\x97\xA5 which is the 6th day or alternatively 6.");
 #else