summaryrefslogtreecommitdiffstats
path: root/libcxx/test/lit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/lit.cfg')
-rw-r--r--libcxx/test/lit.cfg9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcxx/test/lit.cfg b/libcxx/test/lit.cfg
index 34875b0fecd..bfb678f0650 100644
--- a/libcxx/test/lit.cfg
+++ b/libcxx/test/lit.cfg
@@ -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',
OpenPOWER on IntegriCloud