bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c32isprint tests: Avoid test failure on mingw/ucrt


From: Bruno Haible
Subject: c32isprint tests: Avoid test failure on mingw/ucrt
Date: Sun, 22 Dec 2024 14:34:58 +0100

On mingw-w64 with UCRT option, I see this test failure:

FAIL: test-c32isprint.sh
========================

../../gltests/test-c32isprint.c:178: assertion 'is != 0' failed
FAIL test-c32isprint.sh (exit status: 1)

This patch fixes it.


2024-12-22  Bruno Haible  <bruno@clisp.org>

        c32isprint tests: Avoid test failure on mingw/ucrt.
        * tests/test-c32isprint.c (main): Disable test that fails on mingw/ucrt.

diff --git a/tests/test-c32isprint.c b/tests/test-c32isprint.c
index 61018afcc1..2d5da0a771 100644
--- a/tests/test-c32isprint.c
+++ b/tests/test-c32isprint.c
@@ -172,7 +172,7 @@ main (int argc, char *argv[])
           is = for_character ("\342\200\256", 3);
           ASSERT (is == 0);
         #endif
-        #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __sun)
+        #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __sun || 
(defined _WIN32 && !defined __CYGWIN__))
           /* U+3000 IDEOGRAPHIC SPACE */
           is = for_character ("\343\200\200", 3);
           ASSERT (is != 0);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]