File: disable_locale_tests.patch

package info (click to toggle)
thrift 0.22.0-3
  • links: PTS
  • area: main
  • in suites: sid
  • size: 29,588 kB
  • sloc: cpp: 103,295; java: 26,996; ansic: 21,793; pascal: 15,437; php: 12,823; cs: 10,610; python: 9,733; javascript: 9,274; ruby: 8,316; erlang: 7,360; sh: 5,569; makefile: 4,203; perl: 3,351; yacc: 1,145; xml: 1,079; ml: 962; lisp: 664; lex: 322
file content (37 lines) | stat: -rw-r--r-- 1,059 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: disable locale specific tests
 On buildd network locales might not be available.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Forwarded: no
Last-Update: 2022-03-31

---


--- thrift-0.16.0.orig/lib/cpp/test/ToStringTest.cpp
+++ thrift-0.16.0/lib/cpp/test/ToStringTest.cpp
@@ -44,6 +44,7 @@ BOOST_AUTO_TEST_CASE(base_types_to_strin
 // 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
 #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_floati
   BOOST_CHECK_EQUAL(to_string(1.5L), "1.5");
 }
 #endif
+*/
 
 BOOST_AUTO_TEST_CASE(empty_vector_to_string) {
   std::vector<int> l;