aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/testsuite/22_locale
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-10-15 14:55:42 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-10-15 14:55:42 +0100
commitb219eb03783414d79349b6e21acc53b77d9cc5b2 (patch)
tree175db1c939158d556428509cba6a8a5580b36b1a /libstdc++-v3/testsuite/22_locale
parentf9bd185f189b26627959671bc65dc44d2e769e3e (diff)
downloadgcc-b219eb03783414d79349b6e21acc53b77d9cc5b2.zip
gcc-b219eb03783414d79349b6e21acc53b77d9cc5b2.tar.gz
gcc-b219eb03783414d79349b6e21acc53b77d9cc5b2.tar.bz2
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: r265165
Diffstat (limited to 'libstdc++-v3/testsuite/22_locale')
-rw-r--r--libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc6
1 files changed, 4 insertions, 2 deletions
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 f314502..a55cf89 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 <bkoz@redhat.com>
@@ -28,12 +28,14 @@ void test02()
{
using namespace std;
- 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 == "" );
}