From 8fae712db5b84b4e6b05f447d9c8500e5bc075e7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 13 Dec 2018 11:28:32 +0100 Subject: [PATCH] localeconv tests: Avoid test failure on Cygwin. * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and 'mon_grouping' tests. --- ChangeLog | 6 ++++++ tests/test-localeconv.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 69a62b5d69..b9d8597b1d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-12-13 Bruno Haible + + localeconv tests: Avoid test failure on Cygwin. + * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and + 'mon_grouping' tests. + 2018-12-11 Bruno Haible omap: Don't dispose the old value when the function returns it. diff --git a/tests/test-localeconv.c b/tests/test-localeconv.c index 65e364d752..d2bd761501 100644 --- a/tests/test-localeconv.c +++ b/tests/test-localeconv.c @@ -37,13 +37,13 @@ main () ASSERT (STREQ (l->decimal_point, ".")); ASSERT (STREQ (l->thousands_sep, "")); -#if !((defined __FreeBSD__ || defined __DragonFly__) || defined __sun) +#if !((defined __FreeBSD__ || defined __DragonFly__) || defined __sun || defined __CYGWIN__) ASSERT (STREQ (l->grouping, "")); #endif ASSERT (STREQ (l->mon_decimal_point, "")); ASSERT (STREQ (l->mon_thousands_sep, "")); -#if !((defined __FreeBSD__ || defined __DragonFly__) || defined __sun) +#if !((defined __FreeBSD__ || defined __DragonFly__) || defined __sun || defined __CYGWIN__) ASSERT (STREQ (l->mon_grouping, "")); #endif ASSERT (STREQ (l->positive_sign, "")); -- 2.39.5