]> Savannah Git Hosting - gnulib.git/commitdiff
sprintf-posix, snprintf-posix tests: Add comment.
authorBruno Haible <bruno@clisp.org>
Wed, 1 May 2024 10:25:18 +0000 (12:25 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 1 May 2024 10:25:18 +0000 (12:25 +0200)
Suggested by Collin Funk in
<https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00546.html>.

* tests/test-sprintf-posix.h (test_function): Add comment about known
failures.

ChangeLog
tests/test-sprintf-posix.h

index fee17c01ce811a2ed9419cb3bdf378df2db970fe..118eeaa050f427245992cb9aad6fcd90636be22e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-05-01  Bruno Haible  <bruno@clisp.org>
+
+       sprintf-posix, snprintf-posix tests: Add comment.
+       Suggested by Collin Funk in
+       <https://lists.gnu.org/archive/html/bug-gnulib/2024-04/msg00546.html>.
+       * tests/test-sprintf-posix.h (test_function): Add comment about known
+       failures.
+
 2024-05-01  Collin Funk  <collin.funk1@gmail.com>
 
        gnulib-tool.py: Fix mistake in previous commit.
index f09a17fd483f026f069b815d910133c446eb1959..7c545dd34581c440bb5483a69c0fb0aca351352c 100644 (file)
@@ -3170,6 +3170,9 @@ test_function (int (*my_sprintf) (char *, const char *, ...))
         as if by a call to the wcrtomb function with a pointer to storage of
         at least MB_CUR_MAX bytes, the wint_t argument converted to wchar_t,
         and an initial shift state."  */
+    /* This test is known to fail
+         - on musl libc,
+         - with gcc 14 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114876>  */
     ASSERT (memcmp (result, "a\0z 33\0", 6 + 1) == 0);
     ASSERT (retval == 6);
   }