Mercurial > gnulib
changeset 39703:41676971b0e4
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.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 24 Jun 2018 16:10:16 +0200 |
parents | c4c7af0652e0 |
children | 46aa87a2631e |
files | ChangeLog tests/test-wcwidth.c |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Jun 23 21:02:36 2018 -0700 +++ b/ChangeLog Sun Jun 24 16:10:16 2018 +0200 @@ -1,3 +1,9 @@ +2018-06-24 Bruno Haible <bruno@clisp.org> + + 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 <P@draigBrady.com> crypto: mention --without-linux-crypto in --with-openssl --help
--- a/tests/test-wcwidth.c Sat Jun 23 21:02:36 2018 -0700 +++ b/tests/test-wcwidth.c Sun Jun 24 16:10:16 2018 +0200 @@ -35,10 +35,12 @@ { 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. */