diff options
author | Dan Albert <danalbert@google.com> | 2014-08-04 18:44:48 +0000 |
---|---|---|
committer | Dan Albert <danalbert@google.com> | 2014-08-04 18:44:48 +0000 |
commit | a85b27f6f7fa2b68646e547daef82dd6b2d3189d (patch) | |
tree | e38f086a949449ac6a5020b7dac088a5adcb37cf /libcxx/test/input.output | |
parent | ee02499a8fb64f9710b4543f2f46c5305dcb11fc (diff) | |
download | bcm5719-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/input.output')
4 files changed, 11 insertions, 0 deletions
diff --git a/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/copyfmt.pass.cpp b/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/copyfmt.pass.cpp index 80f6e2672de..c46e2c054e8 100644 --- a/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/copyfmt.pass.cpp +++ b/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/copyfmt.pass.cpp @@ -7,6 +7,9 @@ // //===----------------------------------------------------------------------===// +// REQUIRES: locale.en_US.UTF-8 +// REQUIRES: locale.fr_FR.UTF-8 + // <ios> // template <class charT, class traits> class basic_ios diff --git a/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/move.pass.cpp b/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/move.pass.cpp index eb9262c9d81..509b836686c 100644 --- a/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/move.pass.cpp +++ b/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/move.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// REQUIRES: locale.fr_FR.UTF-8 + // <ios> // template <class charT, class traits> class basic_ios diff --git a/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/swap.pass.cpp b/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/swap.pass.cpp index 08b8ec4a9b6..e44f4b32512 100644 --- a/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/swap.pass.cpp +++ b/libcxx/test/input.output/iostreams.base/ios/basic.ios.members/swap.pass.cpp @@ -7,6 +7,9 @@ // //===----------------------------------------------------------------------===// +// REQUIRES: locale.en_US.UTF-8 +// REQUIRES: locale.fr_FR.UTF-8 + // <ios> // template <class charT, class traits> class basic_ios diff --git a/libcxx/test/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp b/libcxx/test/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp index 2c4f22b1cf0..deb2dc7c139 100644 --- a/libcxx/test/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp +++ b/libcxx/test/input.output/stream.buffers/streambuf/streambuf.members/streambuf.locales/locales.pass.cpp @@ -7,6 +7,9 @@ // //===----------------------------------------------------------------------===// +// REQUIRES: locale.en_US.UTF-8 +// REQUIRES: locale.fr_FR.UTF-8 + // <streambuf> // template <class charT, class traits = char_traits<charT> > |