[libcxx-commits] [PATCH] D118240: [libcxx] [test] Fix the locale.time.put.byname/put1 testcase on Linux and Windows

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Jan 26 04:19:39 PST 2022


mstorsjo created this revision.
mstorsjo added a reviewer: ldionne.
mstorsjo requested review of this revision.
Herald added a project: libc++.
Herald added a reviewer: libc++.

The Windows and Glibc abbreviated forms of Saturday in French locale
is "sam." with a trailing period included. Account for this in the
test reference.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118240

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


Index: libcxx/test/std/localization/locale.categories/category.time/locale.time.put.byname/put1.pass.cpp
===================================================================
--- libcxx/test/std/localization/locale.categories/category.time/locale.time.put.byname/put1.pass.cpp
+++ libcxx/test/std/localization/locale.categories/category.time/locale.time.put.byname/put1.pass.cpp
@@ -9,7 +9,6 @@
 // NetBSD does not support LC_TIME at the moment
 // XFAIL: netbsd
 
-// XFAIL: LIBCXX-WINDOWS-FIXME
 // XFAIL: LIBCXX-AIX-FIXME
 
 // REQUIRES: locale.en_US.UTF-8
@@ -29,9 +28,6 @@
 //     ~time_put_byname();
 // };
 
-// TODO: investigation needed
-// XFAIL: target={{.*}}-linux-gnu{{.*}}
-
 #include <locale>
 #include <cassert>
 #include "test_macros.h"
@@ -79,7 +75,8 @@
                      pat.data(), pat.data() + pat.size());
         std::string ex(str, iter.base());
         assert((ex == "Today is Samedi which is abbreviated Sam.")||
-               (ex == "Today is samedi which is abbreviated sam." ));
+               (ex == "Today is samedi which is abbreviated sam." )||
+               (ex == "Today is samedi which is abbreviated sam.."));
     }
 
   return 0;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118240.403213.patch
Type: text/x-patch
Size: 1178 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20220126/1c98147b/attachment-0001.bin>


More information about the libcxx-commits mailing list