summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/localization/locale.categories
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-03-22 23:14:20 +0000
committerEric Fiselier <eric@efcs.ca>2018-03-22 23:14:20 +0000
commit561e75738be65f1df235bf17a07a210a76e019fe (patch)
treeb08a8c3c05af5c7c5f44d5e06d49c6f11438ae31 /libcxx/test/std/localization/locale.categories
parent3520331f933437c6f6f95e3534a28225abff727a (diff)
downloadbcm5719-llvm-561e75738be65f1df235bf17a07a210a76e019fe.tar.gz
bcm5719-llvm-561e75738be65f1df235bf17a07a210a76e019fe.zip
Add temporary printouts to test to help debug failures.
Some debian libc++ bots started having failures in the locale tests due to what I assume is a change in the locale data for fr_FR in glibc. This change prints the actual value from the test to help debugging. It should be reverted once the bots cycle. llvm-svn: 328268
Diffstat (limited to 'libcxx/test/std/localization/locale.categories')
-rw-r--r--libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/decimal_point.pass.cpp6
-rw-r--r--libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/decimal_point.pass.cpp b/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/decimal_point.pass.cpp
index 4051d451fcb..09e6e94ca31 100644
--- a/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/decimal_point.pass.cpp
+++ b/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct.byname/decimal_point.pass.cpp
@@ -21,6 +21,7 @@
#include <locale>
#include <limits>
#include <cassert>
+#include <iostream> // FIXME: for debugging purposes only
#include "test_macros.h"
#include "platform_support.h" // locale name macros
@@ -119,6 +120,11 @@ int main()
#endif
{
Fnf f(LOCALE_ru_RU_UTF_8, 1);
+ if (f.decimal_point() != sep) {
+ std::cout << "f.decimal_point() = '" << f.decimal_point() << "'\n";
+ std::cout << "sep = '" << sep << "'\n";
+ std::cout << std::endl;
+ }
assert(f.decimal_point() == sep);
}
{
diff --git a/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp b/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp
index 38cbcfda4f0..08ce35bf593 100644
--- a/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp
+++ b/libcxx/test/std/localization/locale.categories/facet.numpunct/locale.numpunct.byname/thousands_sep.pass.cpp
@@ -19,6 +19,7 @@
#include <locale>
#include <cassert>
+#include <iostream> // FIXME: for debugging purposes only
#include "test_macros.h"
#include "platform_support.h" // locale name macros
@@ -63,6 +64,11 @@ int main()
{
typedef char C;
const std::numpunct<C>& np = std::use_facet<std::numpunct<C> >(l);
+ if (np.thousands_sep() != sep) {
+ std::cout << "np.thousands_sep() = '" << np.thousands_sep() << "'\n";
+ std::cout << "sep = '" << sep << "'\n";
+ std::cout << std::endl;
+ }
assert(np.thousands_sep() == sep);
}
{
OpenPOWER on IntegriCloud