diff options
Diffstat (limited to 'tests/test-c32isalnum.c')
-rw-r--r-- | tests/test-c32isalnum.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/test-c32isalnum.c b/tests/test-c32isalnum.c index 3720810392..4f75e0f4aa 100644 --- a/tests/test-c32isalnum.c +++ b/tests/test-c32isalnum.c @@ -1,9 +1,9 @@ /* Test of c32isalnum() function. - Copyright (C) 2020-2021 Free Software Foundation, Inc. + Copyright (C) 2020-2024 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 3 of the License, or + the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -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__) + #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 __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); @@ -212,6 +212,10 @@ main (int argc, char *argv[]) case '4': /* Locale encoding is GB18030. */ + #if (defined __GLIBC__ && __GLIBC__ == 2 && __GLIBC_MINOR__ >= 13 && __GLIBC_MINOR__ <= 15) || (GL_CHAR32_T_IS_UNICODE && (defined __FreeBSD__ || defined __NetBSD__ || defined __sun)) + fputs ("Skipping test: The GB18030 converter in this system's iconv is broken.\n", stderr); + return 77; + #endif { /* U+00D7 MULTIPLICATION SIGN */ is = for_character ("\241\301", 2); @@ -232,9 +236,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); |