]> Savannah Git Hosting - gnulib.git/commitdiff
vasnwprintf-posix tests: Avoid test failure on mingw.
authorBruno Haible <bruno@clisp.org>
Fri, 7 Apr 2023 21:23:47 +0000 (23:23 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 7 Apr 2023 21:23:47 +0000 (23:23 +0200)
* tests/test-vasnwprintf-posix.c (test_function): For mingw, change two
expected test results.

ChangeLog
tests/test-vasnwprintf-posix.c

index 29f2e9db685c400bd52626c1b723f92c54fffc9e..a176f12f3530b93bebbebca210af401ca54b596b 100644 (file)
--- 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).
index 125b9386a489d12f86243eaeffd8e53f45e15212..67e6654e5c9cec30118ba53f92e39f9b04198cc4 100644 (file)
@@ -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);