From: Laszlo Boszormenyi (GCS) Date: Wed, 28 Sep 2022 17:05:02 +0000 (+0100) Subject: disable locale specific tests X-Git-Tag: archive/raspbian/0.17.0-2+rpi1^2~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=69757dc85e1a0fa13bdb64134996e536c2c6dd33;p=thrift.git disable locale specific tests Forwarded: no Last-Update: 2022-03-31 On buildd network locales might not be available. Gbp-Pq: Name disable_locale_tests.patch --- diff --git a/lib/cpp/test/ToStringTest.cpp b/lib/cpp/test/ToStringTest.cpp index 736b33c..7045e18 100644 --- a/lib/cpp/test/ToStringTest.cpp +++ b/lib/cpp/test/ToStringTest.cpp @@ -44,6 +44,7 @@ BOOST_AUTO_TEST_CASE(base_types_to_string) { // NOTE: Currently (as of 2021.08.12) the locale-based tests do not work on // Windows in the AppVeyor Thrift CI build correctly. Therefore disabled on // Windows: +/* #ifndef _WIN32 BOOST_AUTO_TEST_CASE(locale_en_US_int_to_string) { #ifdef _WIN32 @@ -53,7 +54,9 @@ BOOST_AUTO_TEST_CASE(locale_en_US_int_to_string) { #endif BOOST_CHECK_EQUAL(to_string(1000000), "1000000"); } +*/ +/* BOOST_AUTO_TEST_CASE(locale_de_DE_floating_point_to_string) { #ifdef _WIN32 std::locale::global(std::locale("de-DE.UTF-8")); @@ -65,6 +68,7 @@ BOOST_AUTO_TEST_CASE(locale_de_DE_floating_point_to_string) { BOOST_CHECK_EQUAL(to_string(1.5L), "1.5"); } #endif +*/ BOOST_AUTO_TEST_CASE(empty_vector_to_string) { std::vector l;