]> Savannah Git Hosting - gnulib.git/commitdiff
Avoid some test failures on DragonFly BSD 6.0.
authorBruno Haible <bruno@clisp.org>
Mon, 7 Jun 2021 23:17:02 +0000 (01:17 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 7 Jun 2021 23:17:02 +0000 (01:17 +0200)
* tests/test-c32isalnum.c (main): On Dragonfly BSD, disable tests that
fail.
* tests/test-c32isalpha.c (main): Likewise.
* tests/test-c32islower.c (main): Likewise.
* tests/test-c32isupper.c (main): Likewise.
* tests/test-ptsname.c (main): Treat Dragonfly BSD like Solaris.

ChangeLog
tests/test-c32isalnum.c
tests/test-c32isalpha.c
tests/test-c32islower.c
tests/test-c32isupper.c
tests/test-ptsname.c

index 744f4b8aefa1f8202001d05e2cd02a52d0fbfe76..f1eaf5bd390ad41c648ee1598301c4d79e7c449c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2021-06-07  Bruno Haible  <bruno@clisp.org>
+
+       Avoid some test failures on DragonFly BSD 6.0.
+       * tests/test-c32isalnum.c (main): On Dragonfly BSD, disable tests that
+       fail.
+       * tests/test-c32isalpha.c (main): Likewise.
+       * tests/test-c32islower.c (main): Likewise.
+       * tests/test-c32isupper.c (main): Likewise.
+       * tests/test-ptsname.c (main): Treat Dragonfly BSD like Solaris.
+
 2021-06-07  Kamil Dudka  <kdudka@redhat.com>
 
        mountlist: recognize fuse.portal as dummy file system
index 8f61ad99c69adf4a7b13fc9848878995eef54ead..546cb8a6ec0c619886d68c3b354c81a903b4054f 100644 (file)
@@ -149,7 +149,7 @@ main (int argc, char *argv[])
           /* U+00D7 MULTIPLICATION SIGN */
           is = for_character ("\241\337", 2);
           ASSERT (is == 0);
-        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__)
           /* U+00D8 LATIN CAPITAL LETTER O WITH STROKE */
           is = for_character ("\217\251\254", 3);
           ASSERT (is != 0);
@@ -165,7 +165,7 @@ main (int argc, char *argv[])
           is = for_character ("\243\261", 2);
           ASSERT (is != 0);
         #endif
-        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__)
           /* U+FF4D FULLWIDTH LATIN SMALL LETTER M */
           is = for_character ("\243\355", 2);
           ASSERT (is != 0);
@@ -232,9 +232,11 @@ main (int argc, char *argv[])
           is = for_character ("\243\261", 2);
           ASSERT (is != 0);
         #endif
+        #if !defined __DragonFly__
           /* U+FF4D FULLWIDTH LATIN SMALL LETTER M */
           is = for_character ("\243\355", 2);
           ASSERT (is != 0);
+        #endif
         #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__ || defined __sun)
           /* U+10330 GOTHIC LETTER AHSA */
           is = for_character ("\220\060\322\066", 4);
index 9b071869210aaea40b484b726cdcfe49b8d6f3c4..cf6d2bc63ffdd86a372519703e40efbfd7e0b393 100644 (file)
@@ -147,7 +147,7 @@ main (int argc, char *argv[])
           /* U+00D7 MULTIPLICATION SIGN */
           is = for_character ("\241\337", 2);
           ASSERT (is == 0);
-        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__)
           /* U+00D8 LATIN CAPITAL LETTER O WITH STROKE */
           is = for_character ("\217\251\254", 3);
           ASSERT (is != 0);
@@ -163,7 +163,7 @@ main (int argc, char *argv[])
           is = for_character ("\243\261", 2);
           ASSERT (is == 0);
         #endif
-        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__)
           /* U+FF4D FULLWIDTH LATIN SMALL LETTER M */
           is = for_character ("\243\355", 2);
           ASSERT (is != 0);
@@ -230,9 +230,11 @@ main (int argc, char *argv[])
           is = for_character ("\243\261", 2);
           ASSERT (is == 0);
         #endif
+        #if !defined __DragonFly__
           /* U+FF4D FULLWIDTH LATIN SMALL LETTER M */
           is = for_character ("\243\355", 2);
           ASSERT (is != 0);
+        #endif
         #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__ || defined __sun)
           /* U+10330 GOTHIC LETTER AHSA */
           is = for_character ("\220\060\322\066", 4);
index 0b811fdc246e00974b71c007d5b637b9e4a16b17..33dfb8996170a751af42f222dc4b59e9a2d7f97f 100644 (file)
@@ -156,12 +156,12 @@ main (int argc, char *argv[])
           /* U+00C9 LATIN CAPITAL LETTER E WITH ACUTE */
           is = for_character ("\217\252\261", 3);
           ASSERT (is == 0);
-        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__ || defined __CYGWIN__)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__ || defined __CYGWIN__)
           /* U+00DF LATIN SMALL LETTER SHARP S */
           is = for_character ("\217\251\316", 3);
           ASSERT (is != 0);
         #endif
-        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__)
           /* U+00E9 LATIN SMALL LETTER E WITH ACUTE */
           is = for_character ("\217\253\261", 3);
           ASSERT (is != 0);
@@ -172,7 +172,7 @@ main (int argc, char *argv[])
           /* U+0141 LATIN CAPITAL LETTER L WITH STROKE */
           is = for_character ("\217\251\250", 3);
           ASSERT (is == 0);
-        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__)
           /* U+0142 LATIN SMALL LETTER L WITH STROKE */
           is = for_character ("\217\251\310", 3);
           ASSERT (is != 0);
@@ -188,9 +188,11 @@ main (int argc, char *argv[])
           /* U+3073 HIRAGANA LETTER BI */
           is = for_character ("\244\323", 2);
           ASSERT (is == 0);
+        #if !defined __DragonFly__
           /* U+FF47 FULLWIDTH LATIN SMALL LETTER G */
           is = for_character ("\243\347", 2);
           ASSERT (is != 0);
+        #endif
         }
         return 0;
 
@@ -282,9 +284,11 @@ main (int argc, char *argv[])
           is = for_character ("\201\060\211\070", 4);
           ASSERT (is != 0);
         #endif
+        #if !defined __DragonFly__
           /* U+00E9 LATIN SMALL LETTER E WITH ACUTE */
           is = for_character ("\250\246", 2);
           ASSERT (is != 0);
+        #endif
         #if !(defined __FreeBSD__ || defined __DragonFly__ || defined __sun)
           /* U+00FF LATIN SMALL LETTER Y WITH DIAERESIS */
           is = for_character ("\201\060\213\067", 4);
@@ -315,9 +319,11 @@ main (int argc, char *argv[])
           /* U+3162 HANGUL LETTER YI */
           is = for_character ("\201\071\256\062", 4);
           ASSERT (is == 0);
+        #if !defined __DragonFly__
           /* U+FF47 FULLWIDTH LATIN SMALL LETTER G */
           is = for_character ("\243\347", 2);
           ASSERT (is != 0);
+        #endif
           /* U+FFDB HALFWIDTH HANGUL LETTER YI */
           is = for_character ("\204\061\241\071", 4);
           ASSERT (is == 0);
index 5604a8f9b607259788309f0bbb6279618353f176..c36f17f62f9844944a7f5481e15b96af552f7349 100644 (file)
@@ -151,7 +151,7 @@ main (int argc, char *argv[])
       case '2':
         /* Locale encoding is EUC-JP.  */
         {
-        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__)
           /* U+00C9 LATIN CAPITAL LETTER E WITH ACUTE */
           is = for_character ("\217\252\261", 3);
           ASSERT (is != 0);
@@ -165,7 +165,7 @@ main (int argc, char *argv[])
           /* U+00FF LATIN SMALL LETTER Y WITH DIAERESIS */
           is = for_character ("\217\253\363", 3);
           ASSERT (is == 0);
-        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__)
+        #if !((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__)
           /* U+0141 LATIN CAPITAL LETTER L WITH STROKE */
           is = for_character ("\217\251\250", 3);
           ASSERT (is != 0);
@@ -184,9 +184,11 @@ main (int argc, char *argv[])
           /* U+3073 HIRAGANA LETTER BI */
           is = for_character ("\244\323", 2);
           ASSERT (is == 0);
+        #if !defined __DragonFly__
           /* U+FF27 FULLWIDTH LATIN CAPITAL LETTER G */
           is = for_character ("\243\307", 2);
           ASSERT (is != 0);
+        #endif
         }
         return 0;
 
@@ -303,9 +305,11 @@ main (int argc, char *argv[])
           /* U+3162 HANGUL LETTER YI */
           is = for_character ("\201\071\256\062", 4);
           ASSERT (is == 0);
+        #if !defined __DragonFly__
           /* U+FF27 FULLWIDTH LATIN CAPITAL LETTER G */
           is = for_character ("\243\307", 2);
           ASSERT (is != 0);
+        #endif
           /* U+FFDB HALFWIDTH HANGUL LETTER YI */
           is = for_character ("\204\061\241\071", 4);
           ASSERT (is == 0);
index 5dde071d54c8352da8ec39a4561066c417854a6b..8f12fa860225721c63af6b42f7fa70a4f5ccc0df 100644 (file)
@@ -102,9 +102,10 @@ main (void)
     close (fd);
   }
 
-#if defined __sun
+#if defined __sun || defined __DragonFly__
   /* Solaris has BSD-style /dev/pty[p-r][0-9a-f] files, but the function
-     ptsname() does not work on them.  */
+     ptsname() does not work on them.
+     DragonFly BSD has only /dev/ptmx.  */
   {
     int fd;
     char *result;