From ffba6ac77b4e887510cc5d701409ccf44b3bf190 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 1 May 2024 12:25:18 +0200 Subject: [PATCH] sprintf-posix, snprintf-posix tests: Add comment. Suggested by Collin Funk in . * tests/test-sprintf-posix.h (test_function): Add comment about known failures. --- ChangeLog | 8 ++++++++ tests/test-sprintf-posix.h | 3 +++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index fee17c01ce..118eeaa050 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2024-05-01 Bruno Haible + + sprintf-posix, snprintf-posix tests: Add comment. + Suggested by Collin Funk in + . + * tests/test-sprintf-posix.h (test_function): Add comment about known + failures. + 2024-05-01 Collin Funk gnulib-tool.py: Fix mistake in previous commit. diff --git a/tests/test-sprintf-posix.h b/tests/test-sprintf-posix.h index f09a17fd48..7c545dd345 100644 --- a/tests/test-sprintf-posix.h +++ b/tests/test-sprintf-posix.h @@ -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 */ ASSERT (memcmp (result, "a\0z 33\0", 6 + 1) == 0); ASSERT (retval == 6); } -- 2.39.5