Skip to content

Commit 81e6861

Browse files
committed
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.
1 parent 2ec690d commit 81e6861

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

run-tests.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,16 @@ set_native() {
120120
NATIVE_ARMV7=1
121121
RUN_ARMV7=true
122122
fi
123+
124+
if [ -z "$IS_UCRT" ]; then
125+
# If targeting msvcrt.dll, skip executing the x86 binaries
126+
# emulated. They do run, but statically linked mingw math
127+
# functions fail some tests, when running emulated; those functions
128+
# rely on 80 bit long doubles actually having more precision than
129+
# 64 bit doubles.
130+
unset RUN_I686
131+
unset RUN_X86_64
132+
fi
123133
;;
124134
esac
125135
}

0 commit comments

Comments
 (0)