]> Savannah Git Hosting - gnulib.git/commitdiff
nl_langinfo tests: Avoid test failure on Solaris 11.
authorBruno Haible <bruno@clisp.org>
Thu, 2 Mar 2023 08:17:33 +0000 (09:17 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 2 Mar 2023 08:17:33 +0000 (09:17 +0100)
* tests/test-nl_langinfo2.c (main): Skip French T_FMT_AMPM test on
Solaris.

ChangeLog
tests/test-nl_langinfo2.c

index aa99891e55eb157daf71dd6afcec619af9246365..5076ac68ee31b05e97b7dbf7aa39a6be67da57b8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-03-02  Bruno Haible  <bruno@clisp.org>
+
+       nl_langinfo tests: Avoid test failure on Solaris 11.
+       * tests/test-nl_langinfo2.c (main): Skip French T_FMT_AMPM test on
+       Solaris.
+
 2023-02-28  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
 
        terminfo, termcap: Fix more spellos in a comment.
index 4625a8a0f85dd00eff8d91d991268019e51ac832..7f276da83d148e2c7669f8f19a8cddc6312f496a 100644 (file)
@@ -91,9 +91,9 @@ main (int argc, char *argv[])
               ASSERT (strcmp (fr_RADIXCHAR, ",") == 0);
 
               /* nl_langinfo items of the LC_TIME category */
-              /* macOS doesn't get the LC_TIME values right.
+              /* macOS and Solaris 11 don't get the LC_TIME values right.
                  Poor.  */
-              #if !(defined __APPLE__ && defined __MACH__)
+              #if !((defined __APPLE__ && defined __MACH__) || defined __sun)
               const char *fr_T_FMT_AMPM = nl_langinfo (T_FMT_AMPM);
               const char *fr_AM_STR = nl_langinfo (AM_STR);
               const char *fr_PM_STR = nl_langinfo (PM_STR);