summaryrefslogtreecommitdiff
path: root/tests/test-sprintf-posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test-sprintf-posix.h')
-rw-r--r--tests/test-sprintf-posix.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test-sprintf-posix.h b/tests/test-sprintf-posix.h
index 6ea2052186..a0b5eb3391 100644
--- a/tests/test-sprintf-posix.h
+++ b/tests/test-sprintf-posix.h
@@ -3166,7 +3166,8 @@ test_function (int (*my_sprintf) (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
@@ -3228,7 +3229,8 @@ test_function (int (*my_sprintf) (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