]> Savannah Git Hosting - gnulib.git/commitdiff
wchar-single: Fix test failure in wcwidth tests.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Jun 2018 14:10:16 +0000 (16:10 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 24 Jun 2018 14:10:16 +0000 (16:10 +0200)
* tests/test-wcwidth.c (main): If the wchar-single module is present,
skip the tests in the C locale.

ChangeLog
tests/test-wcwidth.c

index 3459c88f49317dcc2ad46fe5dcf40c5125af8b00..f5ea912415f2f0434d2b297b28860637f44449f2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index f0eb7ab4865883e7f5850bf0b08e62fe113e9c13..4aa6ab7420aefbf8ac01b015db0bde29fd89f177 100644 (file)
@@ -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.  */