[libcxx] r222513 - Mark some locale tests as XFAIL on debian and opensuse.
Eric Fiselier
eric at efcs.ca
Fri Nov 21 00:02:39 PST 2014
Author: ericwf
Date: Fri Nov 21 02:02:38 2014
New Revision: 222513
URL: http://llvm.org/viewvc/llvm-project?rev=222513&view=rev
Log:
Mark some locale tests as XFAIL on debian and opensuse.
Modified:
libcxx/trunk/test/lit.cfg
libcxx/trunk/test/localization/locale.categories/category.time/locale.time.get.byname/get_monthname.pass.cpp
libcxx/trunk/test/localization/locale.categories/category.time/locale.time.get.byname/get_monthname_wide.pass.cpp
Modified: libcxx/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/lit.cfg?rev=222513&r1=222512&r2=222513&view=diff
==============================================================================
--- libcxx/trunk/test/lit.cfg (original)
+++ libcxx/trunk/test/lit.cfg Fri Nov 21 02:02:38 2014
@@ -358,6 +358,15 @@ class Configuration(object):
if 'libcpp-has-no-monotonic-clock' in self.config.available_features:
self.compile_flags += ['-D_LIBCPP_HAS_NO_MONOTONIC_CLOCK']
+ # Some linux distributions have different locale data than others.
+ # Insert the distributions name and name-version into the available
+ # features to allow tests to XFAIL on them.
+ if sys.platform.startswith('linux'):
+ os_info = platform.linux_distribution()
+ self.config.available_features.add(os_info[0].lower())
+ self.config.available_features.add(
+ '%s-%s' % (os_info[0].lower(), os_info[1]))
+
def configure_compile_flags(self):
# Configure extra compiler flags.
self.compile_flags += ['-I' + self.src_root + '/include',
Modified: libcxx/trunk/test/localization/locale.categories/category.time/locale.time.get.byname/get_monthname.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.time/locale.time.get.byname/get_monthname.pass.cpp?rev=222513&r1=222512&r2=222513&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.time/locale.time.get.byname/get_monthname.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.time/locale.time.get.byname/get_monthname.pass.cpp Fri Nov 21 02:02:38 2014
@@ -12,6 +12,12 @@
// REQUIRES: locale.ru_RU.UTF-8
// REQUIRES: locale.zh_CN.UTF-8
+// NOTE: debian and opensuse use old locale data for ru_RU.UTF-8 abreviated
+// months. This locale data was changed in glibc 2.14.
+// Debian uses glibc 2.13 as of 20/11/2014
+// OpenSuse uses glibc 2.19 with old locale data as of 20/11/2014
+// XFAIL: debian, opensuse
+
// <locale>
// class time_get_byname<charT, InputIterator>
Modified: libcxx/trunk/test/localization/locale.categories/category.time/locale.time.get.byname/get_monthname_wide.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/localization/locale.categories/category.time/locale.time.get.byname/get_monthname_wide.pass.cpp?rev=222513&r1=222512&r2=222513&view=diff
==============================================================================
--- libcxx/trunk/test/localization/locale.categories/category.time/locale.time.get.byname/get_monthname_wide.pass.cpp (original)
+++ libcxx/trunk/test/localization/locale.categories/category.time/locale.time.get.byname/get_monthname_wide.pass.cpp Fri Nov 21 02:02:38 2014
@@ -12,6 +12,12 @@
// REQUIRES: locale.ru_RU.UTF-8
// REQUIRES: locale.zh_CN.UTF-8
+// NOTE: debian and opensuse use bad locale data for ru_RU.UTF-8 abreviated
+// months. This locale data was fixed in glibc 2.14.
+// Debian uses glibc 2.13 as of 20/11/2014
+// OpenSuse uses glibc 2.19 with old locale data as of 20/11/2014
+// XFAIL: debian, opensuse
+
// <locale>
// class time_get_byname<charT, InputIterator>
More information about the cfe-commits
mailing list