summaryrefslogtreecommitdiff
path: root/tests/test-c32isalpha.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-c32isalpha.c')
-rw-r--r--tests/test-c32isalpha.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/tests/test-c32isalpha.c b/tests/test-c32isalpha.c
index 5be01780b2..14c78d7d23 100644
--- a/tests/test-c32isalpha.c
+++ b/tests/test-c32isalpha.c
@@ -1,9 +1,9 @@
/* Test of c32isalpha() 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,
@@ -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__)
+ #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);
@@ -158,12 +158,12 @@ main (int argc, char *argv[])
/* U+3001 IDEOGRAPHIC COMMA */
is = for_character ("\241\242", 2);
ASSERT (is == 0);
- #if !(defined __GLIBC__ || defined __CYGWIN__)
+ #if !(defined __GLIBC__ || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__ || defined __sun || defined __CYGWIN__)
/* U+FF11 FULLWIDTH DIGIT ONE */
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);
@@ -186,7 +186,7 @@ main (int argc, char *argv[])
/* U+3001 IDEOGRAPHIC COMMA */
is = for_character ("\343\200\201", 3);
ASSERT (is == 0);
- #if !(defined __GLIBC__ || defined _AIX || defined __sun || defined __CYGWIN__)
+ #if !(defined __GLIBC__ || defined MUSL_LIBC || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__ || defined _AIX || defined __sun || defined __CYGWIN__)
/* U+FF11 FULLWIDTH DIGIT ONE */
is = for_character ("\357\274\221", 3);
ASSERT (is == 0);
@@ -210,6 +210,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);
@@ -225,14 +229,16 @@ main (int argc, char *argv[])
/* U+3001 IDEOGRAPHIC COMMA */
is = for_character ("\241\242", 2);
ASSERT (is == 0);
- #if !defined __GLIBC__
+ #if !(defined __GLIBC__ || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__)
/* U+FF11 FULLWIDTH DIGIT ONE */
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);

Return to:

Send suggestions and report system problems to the System administrator.