summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-04-07 23:23:47 +0200
committerBruno Haible <bruno@clisp.org>2023-04-07 23:23:47 +0200
commitc37c18e05e15c33166f0eb842f492c4903d8520a (patch)
tree035b7a4eb43ce4341b6673e53d83babd35016a4f
parentdae574b0999669f9e7cc3bc830901100b76bf278 (diff)
downloadgnulib-c37c18e05e15c33166f0eb842f492c4903d8520a.tar.gz
vasnwprintf-posix tests: Avoid test failure on mingw.
* tests/test-vasnwprintf-posix.c (test_function): For mingw, change two expected test results.
-rw-r--r--ChangeLog6
-rw-r--r--tests/test-vasnwprintf-posix.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 29f2e9db68..a176f12f35 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-07 Bruno Haible <bruno@clisp.org>
+
+ vasnwprintf-posix tests: Avoid test failure on mingw.
+ * tests/test-vasnwprintf-posix.c (test_function): For mingw, change two
+ expected test results.
+
2023-04-06 Bruno Haible <bruno@clisp.org>
uchar: Inline functions with C linkage in C++ mode (regr. 2023-04-04).
diff --git a/tests/test-vasnwprintf-posix.c b/tests/test-vasnwprintf-posix.c
index 125b9386a4..67e6654e5c 100644
--- a/tests/test-vasnwprintf-posix.c
+++ b/tests/test-vasnwprintf-posix.c
@@ -4205,7 +4205,7 @@ test_function (wchar_t * (*my_asnwprintf) (wchar_t *, size_t *, const wchar_t *,
ASSERT (result != NULL);
/* Neither ISO C nor POSIX specify that the '0' flag is ignored when a width
and a precision are both present. But most implementations do so. */
- #if MUSL_LIBC || defined __MINGW32__
+ #if MUSL_LIBC
ASSERT (wcscmp (result, L"00000000000303c 33") == 0);
#else
ASSERT (wcscmp (result, L" 000000303c 33") == 0);
@@ -4291,7 +4291,7 @@ test_function (wchar_t * (*my_asnwprintf) (wchar_t *, size_t *, const wchar_t *,
ASSERT (result != NULL);
/* Neither ISO C nor POSIX specify that the '0' flag is ignored when a width
and a precision are both present. But most implementations do so. */
- #if MUSL_LIBC || defined __MINGW32__
+ #if MUSL_LIBC
ASSERT (wcscmp (result, L"0x000000000303c 33") == 0);
#else
ASSERT (wcscmp (result, L" 0x000000303c 33") == 0);