diff options
Diffstat (limited to 'tests/test-c32isblank.c')
-rw-r--r-- | tests/test-c32isblank.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/test-c32isblank.c b/tests/test-c32isblank.c index 984d0d8f8f..0e722b2575 100644 --- a/tests/test-c32isblank.c +++ b/tests/test-c32isblank.c @@ -1,9 +1,9 @@ /* Test of c32isblank() 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, @@ -74,7 +74,7 @@ main (int argc, char *argv[]) switch (c) { case '\t': - #if !defined __NetBSD__ + #if !(defined __FreeBSD__ || defined __NetBSD__) case '\v': #endif case '\f': @@ -169,6 +169,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 { #if defined __GLIBC__ /* U+00A0 NO-BREAK SPACE */ |