bug-gnulib
[Top][All Lists]
Advanced

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

c32ispunct tests: Avoid test failures on FreeBSD


From: Bruno Haible
Subject: c32ispunct tests: Avoid test failures on FreeBSD
Date: Mon, 04 Jan 2021 02:14:25 +0100
User-agent: KMail/5.1.3 (Linux/4.4.0-197-generic; KDE/5.18.0; x86_64; ; )

On FreeBSD 12.1.1, I see a test failure:

  FAIL: test-c32ispunct.sh

This patch fixes it.


2021-01-03  Bruno Haible  <bruno@clisp.org>

        c32ispunct tests: Avoid test failures on FreeBSD.
        * tests/test-c32ispunct.c (main): On FreeBSD, disable tests that fail on
        FreeBSD 12.1.1.

diff --git a/tests/test-c32ispunct.c b/tests/test-c32ispunct.c
index 0ba4f51..34bd8ef 100644
--- a/tests/test-c32ispunct.c
+++ b/tests/test-c32ispunct.c
@@ -207,7 +207,7 @@ main (int argc, char *argv[])
           /* U+00BF INVERTED QUESTION MARK */
           is = for_character ("\302\277", 2);
           ASSERT (is != 0);
-        #if !defined __sun
+        #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __sun)
           /* U+00D7 MULTIPLICATION SIGN */
           is = for_character ("\303\227", 2);
           ASSERT (is != 0);
@@ -224,7 +224,7 @@ main (int argc, char *argv[])
           /* U+05F3 HEBREW PUNCTUATION GERESH */
           is = for_character ("\327\263", 2);
           ASSERT (is != 0);
-        #if !(defined __sun || (defined _WIN32 && !defined __CYGWIN__))
+        #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __sun || 
(defined _WIN32 && !defined __CYGWIN__))
           /* U+2192 RIGHTWARDS ARROW */
           is = for_character ("\342\206\222", 3);
           ASSERT (is != 0);
@@ -241,7 +241,7 @@ main (int argc, char *argv[])
           /* U+10330 GOTHIC LETTER AHSA */
           is = for_character ("\360\220\214\260", 4);
           ASSERT (is == 0);
-        #if !defined __sun
+        #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __sun)
           /* U+1D100 MUSICAL SYMBOL SINGLE BARLINE */
           is = for_character ("\360\235\204\200", 4);
           ASSERT (is != 0);




reply via email to

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