summaryrefslogtreecommitdiffstats
path: root/libcxx/test/re/re.traits/transform.pass.cpp
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-08-04 18:44:48 +0000
committerDan Albert <danalbert@google.com>2014-08-04 18:44:48 +0000
commita85b27f6f7fa2b68646e547daef82dd6b2d3189d (patch)
treee38f086a949449ac6a5020b7dac088a5adcb37cf /libcxx/test/re/re.traits/transform.pass.cpp
parentee02499a8fb64f9710b4543f2f46c5305dcb11fc (diff)
downloadbcm5719-llvm-a85b27f6f7fa2b68646e547daef82dd6b2d3189d.tar.gz
bcm5719-llvm-a85b27f6f7fa2b68646e547daef82dd6b2d3189d.zip
Add locales to available_features for tests.
Linux has a lot of failures caused by not having support for certain locales. Since these come out as a lot of noise in the test results, have lit.cfg detect the presence of the various locales used in the tests and add them to config.available_features as locale.LOCALE_NAME. This patch also adds REQUIRES: locale.REQUIRED_LOCALE to every test that I saw failing in this manner. We probably need to add more for all the tests requiring en_US.UTF-8, but we can do that on an as-needed basis. One thing that concerns me is how many tests get skipped because of missing locales (especially in regex/). We should make a point of splitting up any tests that test default behavior _and_ behavior under a given locale so that we aren't losing coverage for default behavior. llvm-svn: 214753
Diffstat (limited to 'libcxx/test/re/re.traits/transform.pass.cpp')
-rw-r--r--libcxx/test/re/re.traits/transform.pass.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxx/test/re/re.traits/transform.pass.cpp b/libcxx/test/re/re.traits/transform.pass.cpp
index 9b9feb130b3..c3bce7939fe 100644
--- a/libcxx/test/re/re.traits/transform.pass.cpp
+++ b/libcxx/test/re/re.traits/transform.pass.cpp
@@ -8,6 +8,8 @@
//
//===----------------------------------------------------------------------===//
+// REQUIRES: locale.cs_CZ.ISO8859-2
+
// <regex>
// template <class charT> struct regex_traits;
OpenPOWER on IntegriCloud