summaryrefslogtreecommitdiff
path: root/tests/test-c32islower.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-c32islower.c')
-rw-r--r--tests/test-c32islower.c26
1 files changed, 18 insertions, 8 deletions
diff --git a/tests/test-c32islower.c b/tests/test-c32islower.c
index 8bcffaf1e6..3b799677fb 100644
--- a/tests/test-c32islower.c
+++ b/tests/test-c32islower.c
@@ -1,9 +1,9 @@
/* Test of c32islower() 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,
@@ -128,7 +128,7 @@ main (int argc, char *argv[])
/* U+00B2 SUPERSCRIPT TWO */
is = for_character ("\262", 1);
ASSERT (is == 0);
- #if !(defined __GLIBC__ || defined __sun || defined __CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__))
+ #if !(defined __GLIBC__ || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__ || defined __sun || defined __CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__))
/* U+00B5 MICRO SIGN */
is = for_character ("\265", 1);
ASSERT (is == 0);
@@ -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 __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 __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 __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;
@@ -200,7 +202,7 @@ main (int argc, char *argv[])
/* U+00B2 SUPERSCRIPT TWO */
is = for_character ("\302\262", 2);
ASSERT (is == 0);
- #if !(defined __GLIBC__ || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__ || defined _AIX || defined __sun || defined __CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__))
+ #if !(defined __GLIBC__ || defined MUSL_LIBC || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__ || defined _AIX || defined __sun || defined __CYGWIN__ || (defined _WIN32 && !defined __CYGWIN__))
/* U+00B5 MICRO SIGN */
is = for_character ("\302\265", 2);
ASSERT (is == 0);
@@ -265,11 +267,15 @@ 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+00B2 SUPERSCRIPT TWO */
is = for_character ("\201\060\205\065", 4);
ASSERT (is == 0);
- #if !(defined __GLIBC__ || (defined __APPLE__ && defined __MACH__) || defined __NetBSD__)
+ #if !(defined __GLIBC__ || (defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __NetBSD__)
/* U+00B5 MICRO SIGN */
is = for_character ("\201\060\205\070", 4);
ASSERT (is == 0);
@@ -282,9 +288,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 +323,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);

Return to:

Send suggestions and report system problems to the System administrator.