diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-05-12 16:42:50 +0300 |
commit | 752d6256e5204b958b0ef7905675a940b5e9172f (patch) | |
tree | 330d16e6362a49cbed8875a777fe641a43376cd3 /dev-libs/thrift/files/thrift-0.16.0-network-tests.patch | |
parent | 0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff) |
gentoo resync : 12.05.2022
Diffstat (limited to 'dev-libs/thrift/files/thrift-0.16.0-network-tests.patch')
-rw-r--r-- | dev-libs/thrift/files/thrift-0.16.0-network-tests.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-libs/thrift/files/thrift-0.16.0-network-tests.patch b/dev-libs/thrift/files/thrift-0.16.0-network-tests.patch new file mode 100644 index 000000000000..cc1f1cf2c621 --- /dev/null +++ b/dev-libs/thrift/files/thrift-0.16.0-network-tests.patch @@ -0,0 +1,36 @@ +diff --git a/lib/cpp/test/ToStringTest.cpp b/lib/cpp/test/ToStringTest.cpp +index 736b33c0a..f66909873 100644 +--- a/lib/cpp/test/ToStringTest.cpp ++++ b/lib/cpp/test/ToStringTest.cpp +@@ -41,31 +41,6 @@ BOOST_AUTO_TEST_CASE(base_types_to_string) { + BOOST_CHECK_EQUAL(to_string("abc"), "abc"); + } + +-// 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 +- std::locale::global(std::locale("en-US.UTF-8")); +-#else +- std::locale::global(std::locale("en_US.UTF-8")); +-#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")); +-#else +- std::locale::global(std::locale("de_DE.UTF-8")); +-#endif +- BOOST_CHECK_EQUAL(to_string(1.5), "1.5"); +- BOOST_CHECK_EQUAL(to_string(1.5f), "1.5"); +- BOOST_CHECK_EQUAL(to_string(1.5L), "1.5"); +-} +-#endif +- + BOOST_AUTO_TEST_CASE(empty_vector_to_string) { + std::vector<int> l; + BOOST_CHECK_EQUAL(to_string(l), "[]"); |