From 81e6861ff6ab1d17ac67d302cc1f44e8c71e24d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Sun, 14 Sep 2025 00:04:55 +0300 Subject: [PATCH] run-tests: Skip running emulated x86 binaries on aarch64, when targeting msvcrt In this configuration, one test in crt-test.c fails, both for i686 and x86_64, when running emulated on aarch64. --- run-tests.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/run-tests.sh b/run-tests.sh index f818943..ee1c99e 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -120,6 +120,16 @@ set_native() { NATIVE_ARMV7=1 RUN_ARMV7=true fi + + if [ -z "$IS_UCRT" ]; then + # If targeting msvcrt.dll, skip executing the x86 binaries + # emulated. They do run, but statically linked mingw math + # functions fail some tests, when running emulated; those functions + # rely on 80 bit long doubles actually having more precision than + # 64 bit doubles. + unset RUN_I686 + unset RUN_X86_64 + fi ;; esac }