* tests/test-vasnprintf-posix2.c (main): Add one more %'g test.
* tests/test-vasnwprintf-posix2.c (main): Likewise.
+2025-04-12 Bruno Haible <bruno@clisp.org>
+
+ vasnprintf tests: Add a test case that showcases a Solaris bug.
+ * tests/test-vasnprintf-posix2.c (main): Add one more %'g test.
+ * tests/test-vasnwprintf-posix2.c (main): Likewise.
+
2025-04-12 Collin Funk <collin.funk1@gmail.com>
stdlib: Avoid syntax errors in libstdc++ header files on AIX.
}
free (result);
}
+ /* This test used to crash in the Solaris libc, for all Solaris versions.
+ <https://www.illumos.org/issues/17383> */
+ {
+ size_t length;
+ char *result = asnprintf (NULL, &length, "%'.500Lg\n", 42351647362715016953416125033982098102569580078125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0L);
+ free (result);
+ }
}
return test_exit_status;
&& wcscmp (result + 7, L"000") == 0);
free (result);
}
+ {
+ size_t length;
+ wchar_t *result = asnwprintf (NULL, &length, L"%'.500Lg\n", 42351647362715016953416125033982098102569580078125000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000.0L);
+ free (result);
+ }
}
return test_exit_status;