From: Jonathan Wakely Date: Mon, 15 Oct 2018 14:03:53 +0000 (+0100) Subject: Adjust test to pass with latest glibc X-Git-Tag: releases/gcc-6.5.0~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a22584b16a3776a9f0d8b4db1a3397797ca2767d;p=thirdparty%2Fgcc.git Adjust test to pass with latest glibc 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 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 2d0fb22972b0..ef5e24772497 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2018-10-15 Jonathan Wakely + + * 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 Backport from mainline diff --git a/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc b/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc index fc99ec36d687..09623eff3dea 100644 --- a/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc +++ b/libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc @@ -1,4 +1,4 @@ -// { dg-require-namedlocale "it_IT.ISO8859-15" } +// { dg-require-namedlocale "nl_NL.ISO8859-15" } // 2001-01-24 Benjamin Kosnik @@ -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& nump_it = use_facet >(loc_it); string g = nump_it.grouping(); + // Ensure that grouping is empty for locales with empty thousands separator. VERIFY( g == "" ); }