In a testdir of module 'c32isblank' without module 'uchar-c23', I see a
failure:

FAIL: test-c32isblank.sh
========================

test-c32isblank.c:107: assertion 'is == 0' failed
[1]   Abort trap (core dumped) LC_ALL=${LOCALE_FR_UTF8} ${CHECKER} ./test-c32...
FAIL test-c32isblank.sh (exit status: 1)

The cause is that here, iswblank (L'\f') returns true, not false (as expected).

This patch avoids the failure.


2024-06-08  Bruno Haible  <br...@clisp.org>

        c32isblank tests: Avoid test failure on NetBSD 10.0.
        * tests/test-c32isblank.c (main): Disable test of '\f', that fails in
        the fr_FR.UTF-8 locale.

diff --git a/tests/test-c32isblank.c b/tests/test-c32isblank.c
index 3aa6a28b7c..a1d6d6053a 100644
--- a/tests/test-c32isblank.c
+++ b/tests/test-c32isblank.c
@@ -77,7 +77,9 @@ main (int argc, char *argv[])
         #if !(defined __FreeBSD__ || defined __NetBSD__)
         case '\v':
         #endif
+        #if !defined __NetBSD__
         case '\f':
+        #endif
         case ' ': case '!': case '"': case '#': case '%':
         case '&': case '\'': case '(': case ')': case '*':
         case '+': case ',': case '-': case '.': case '/':




Reply via email to