]> Savannah Git Hosting - gnulib.git/commitdiff
mcel tests: Avoid test failures due to broken GB18030 converter.
authorBruno Haible <bruno@clisp.org>
Sat, 25 May 2024 10:39:14 +0000 (12:39 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 25 May 2024 10:39:14 +0000 (12:39 +0200)
* tests/test-mcel.c (main): Fix mistake in last commit.

tests/test-mcel.c

index e0e9f87814d3032251f521e1c70df21358118e22..8f2f00220b67ac64cafe57ec13add56038ac1ccc 100644 (file)
@@ -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