From: Bruno Haible Date: Wed, 1 May 2024 10:25:18 +0000 (+0200) Subject: sprintf-posix, snprintf-posix tests: Add comment. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ffba6ac77b4e887510cc5d701409ccf44b3bf190;p=gnulib.git sprintf-posix, snprintf-posix tests: Add comment. Suggested by Collin Funk in . * tests/test-sprintf-posix.h (test_function): Add comment about known failures. --- 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); }