From: Bruno Haible Date: Sun, 24 Jun 2018 14:10:16 +0000 (+0200) Subject: wchar-single: Fix test failure in wcwidth tests. X-Git-Tag: v1.0~5560 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=58ee14c1ec71f63018db2e8f2d0e3d9cde4f3019;p=gnulib.git wchar-single: Fix test failure in wcwidth tests. * tests/test-wcwidth.c (main): If the wchar-single module is present, skip the tests in the C locale. --- diff --git a/ChangeLog b/ChangeLog index 3459c88f49..f5ea912415 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-06-24 Bruno Haible + + wchar-single: Fix test failure in wcwidth tests. + * tests/test-wcwidth.c (main): If the wchar-single module is present, + skip the tests in the C locale. + 2018-06-23 Pádraig Brady crypto: mention --without-linux-crypto in --with-openssl --help diff --git a/tests/test-wcwidth.c b/tests/test-wcwidth.c index f0eb7ab486..4aa6ab7420 100644 --- a/tests/test-wcwidth.c +++ b/tests/test-wcwidth.c @@ -35,10 +35,12 @@ main () { wchar_t wc; -#ifdef C_CTYPE_ASCII +#if !GNULIB_WCHAR_SINGLE +# ifdef C_CTYPE_ASCII /* Test width of ASCII characters. */ for (wc = 0x20; wc < 0x7F; wc++) ASSERT (wcwidth (wc) == 1); +# endif #endif /* Switch to an UTF-8 locale. */