From e633b48b6313e65a267f92d96b229ec9b1bd617b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Fri, 2 May 2025 13:55:33 +0300 Subject: [PATCH] test: Add a comment about a test that fails when run emulated on arm The test is specific to building for x86, for a msvcrt.dll target, and running that binary on arm. --- test/crt-test.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/crt-test.c b/test/crt-test.c index 1a04df4..785dbbb 100644 --- a/test/crt-test.c +++ b/test/crt-test.c @@ -749,6 +749,13 @@ void test_parse_numbers() { TEST_STRTOD_64B_RANGE(strtod, ); #ifndef MSVCRT_DLL_NOANSI + // This test fails on msvcrt.dll when not using -D__USE_MINGW_ANSI_STDIO=1 + // (which sets __USE_MINGW_STRTOX), hence the ifdef. + // + // When using the mingw provided wcstod on x86, this test succeeds (and + // thus is included). But when running such a binary emulated on ARM, this + // particular test fails, as the range checks in __mingw_wcstod rely on + // 80 bit long doubles really having more precision than 64 bit doubles. TEST_STRTOD_64B_RANGE(wcstod, L); #endif