From 501561910af0e06967e8d5ed4811de4b0dbaaf8f Mon Sep 17 00:00:00 2001 From: Eric Fiselier Date: Thu, 21 Aug 2014 02:38:21 +0000 Subject: [PATCH] Mark some localization time tests as XFAIL on linux. This marks some of the localization test XFAIL on linux. There has been some discussion on D4861 about doing this. Please let me know if any of these tests for you on linux. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@216151 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../category.time/locale.time.get.byname/get_date.pass.cpp | 5 +++++ .../locale.time.get.byname/get_date_wide.pass.cpp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/test/localization/locale.categories/category.time/locale.time.get.byname/get_date.pass.cpp b/test/localization/locale.categories/category.time/locale.time.get.byname/get_date.pass.cpp index 77ee5b36..9a06157a 100644 --- a/test/localization/locale.categories/category.time/locale.time.get.byname/get_date.pass.cpp +++ b/test/localization/locale.categories/category.time/locale.time.get.byname/get_date.pass.cpp @@ -12,6 +12,10 @@ // REQUIRES: locale.ru_RU.UTF-8 // REQUIRES: locale.zh_CN.UTF-8 +// GLIBC Expects "10/06/2009" for fr_FR as opposed to "10.06.2009" +// GLIBC also failes on the zh_CN test. +// XFAIL: linux + // // class time_get_byname @@ -79,6 +83,7 @@ int main() assert(t.tm_year == 109); assert(err == std::ios_base::eofbit); } + { const my_facet f(LOCALE_zh_CN_UTF_8, 1); const char in[] = "2009/06/10"; diff --git a/test/localization/locale.categories/category.time/locale.time.get.byname/get_date_wide.pass.cpp b/test/localization/locale.categories/category.time/locale.time.get.byname/get_date_wide.pass.cpp index 7d0034dd..170f33ad 100644 --- a/test/localization/locale.categories/category.time/locale.time.get.byname/get_date_wide.pass.cpp +++ b/test/localization/locale.categories/category.time/locale.time.get.byname/get_date_wide.pass.cpp @@ -12,6 +12,10 @@ // REQUIRES: locale.ru_RU.UTF-8 // REQUIRES: locale.zh_CN.UTF-8 +// GLIBC Expects "10/06/2009" for fr_FR as opposed to "10.06.2009" +// GLIBC also failes on the zh_CN test. +// XFAIL: linux + // // class time_get_byname