From 5d59b5beb033ccfca26a7eabcff52c96078e37e8 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 25 May 2024 12:39:14 +0200 Subject: [PATCH] mcel tests: Avoid test failures due to broken GB18030 converter. * tests/test-mcel.c (main): Fix mistake in last commit. --- tests/test-mcel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-mcel.c b/tests/test-mcel.c index e0e9f87814..8f2f00220b 100644 --- a/tests/test-mcel.c +++ b/tests/test-mcel.c @@ -79,9 +79,9 @@ main (int argc, char *argv[]) if (argc > 1 && argv[1][0] == '5') { /* 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)) if (test_exit_status != EXIT_SUCCESS) return test_exit_status; - #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 -- 2.39.5