summaryrefslogtreecommitdiff
path: root/tests/test-vasprintf-posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-vasprintf-posix.c')
-rw-r--r--tests/test-vasprintf-posix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-vasprintf-posix.c b/tests/test-vasprintf-posix.c
index e4cc0fb983..858a477a43 100644
--- a/tests/test-vasprintf-posix.c
+++ b/tests/test-vasprintf-posix.c
@@ -4089,7 +4089,8 @@ test_function (int (*my_asprintf) (char **, const char *, ...))
/* 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. */
#ifdef __MINGW32__
- ASSERT (strcmp (result, "00000000000303c 33") == 0);
+ ASSERT (strcmp (result, "00000000000303c 33") == 0 /* mingw 5 */
+ || strcmp (result, " 000000303c 33") == 0 /* mingw 10 */);
#else
ASSERT (strcmp (result, " 000000303c 33") == 0);
#endif
@@ -4175,7 +4176,8 @@ test_function (int (*my_asprintf) (char **, const char *, ...))
/* 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. */
#ifdef __MINGW32__
- ASSERT (strcmp (result, "0x000000000303c 33") == 0);
+ ASSERT (strcmp (result, "0x000000000303c 33") == 0 /* mingw 5 */
+ || strcmp (result, " 0x000000303c 33") == 0 /* mingw 10 */);
#else
ASSERT (strcmp (result, " 0x000000303c 33") == 0);
#endif