]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust test to pass with latest glibc
authorJonathan Wakely <jwakely@redhat.com>
Mon, 15 Oct 2018 14:03:53 +0000 (15:03 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 15 Oct 2018 14:03:53 +0000 (15:03 +0100)
Glibc changed the it_IT locales to use thousands separators,
invalidating this test. Use nl_NL instead, as Dutch only uses grouping
for money not numbers.

* testsuite/22_locale/numpunct/members/char/3.cc: Adjust test to
account for change to glibc it_IT localedata (glibc bz#10797).

From-SVN: r265168

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc

index 2d0fb22972b01ac65bef5054530777a7e3dd6ecd..ef5e24772497d638dea7cee60682dc1dae1578be 100644 (file)
@@ -1,3 +1,8 @@
+2018-10-15  Jonathan Wakely  <jwakely@redhat.com>
+
+       * testsuite/22_locale/numpunct/members/char/3.cc: Adjust test to
+       account for change to glibc it_IT localedata (glibc bz#10797).
+
 2018-10-15  Jonathan Wakely  <jwakely@redhat.com>
 
        Backport from mainline
index fc99ec36d6873ada5a7b8e02065ba39dc4bc0c83..09623eff3dea8e006788440a94616963973e9f25 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-require-namedlocale "it_IT.ISO8859-15" }
+// { dg-require-namedlocale "nl_NL.ISO8859-15" }
 
 // 2001-01-24 Benjamin Kosnik  <bkoz@redhat.com>
 
@@ -30,12 +30,14 @@ void test02()
   
   bool test __attribute__((unused)) = true;
 
-  locale loc_it = locale(ISO_8859(15,it_IT));
+  // nl_NL chosen because it has no thousands separator (at this time).
+  locale loc_it = locale(ISO_8859(15,nl_NL));
 
   const numpunct<char>& nump_it = use_facet<numpunct<char> >(loc_it); 
 
   string g = nump_it.grouping();
 
+  // Ensure that grouping is empty for locales with empty thousands separator.
   VERIFY( g == "" );
 }