Debian Codegraph @

debian/patches/tests-Expect-some-floating-point-tests-to-fail-on-i386.patch

raw
1 From: Simon McVittie <[email protected]>
2 Date: Tue, 11 Sep 2018 16:02:10 +0100
3 Subject: tests: Expect some floating-point tests to fail on i386
4
5 Upstream assumes everything uses SSE mathematics, but SSE isn't in
6 Debian's baseline for i386, so we are stuck with i387 and its weird
7 80-bit floating point registers. We can't even work around this with
8 -fexcess-precision=standard, because mozjs is C++.
9
10 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907363
11 Forwarded: not-needed, Debian-specific
12 ---
13 js/src/tests/jstests.list | 14 ++++++++++++++
14 1 file changed, 14 insertions(+)
15
16 diff --git a/js/src/tests/jstests.list b/js/src/tests/jstests.list
17 index 4e5c090..47f6307 100644
18 --- a/js/src/tests/jstests.list
19 +++ b/js/src/tests/jstests.list
20 @@ -752,6 +752,20 @@ skip script test262/intl402/Temporal/ZonedDateTime/prototype/getTimeZoneTransiti
21 skip script test262/built-ins/Array/fromAsync/sync-iterable-with-rejecting-thenable-closes.js
22
23
24 +############################
25 +# Tests disabled by Debian #
26 +############################
27 +
28 +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907363
29 +# We build without SSE because it isn't in our i386 baseline, which means
30 +# floating-point arithmetic is in i387 extended precision and the rounding
31 +# is not what these tests expect
32 +fails-if(xulRuntime.debian.DEB_HOST_ARCH_CPU.match(/^i386$/)) script non262/Date/timeclip.js
33 +fails-if(xulRuntime.debian.DEB_HOST_ARCH_CPU.match(/^i386$/)) script test262/language/types/number/S8.5_A2.1.js
34 +fails-if(xulRuntime.debian.DEB_HOST_ARCH_CPU.match(/^i386$/)) script test262/language/types/number/S8.5_A2.2.js
35 +fails-if(xulRuntime.debian.DEB_HOST_ARCH_CPU.match(/^i386$/)) script test262/staging/sm/Date/timeclip.js
36 +fails-if(xulRuntime.debian.DEB_HOST_ARCH_CPU.match(/^i386$/)) script test262/built-ins/Temporal/Duration/prototype/total/precision-exact-mathematical-values-6.js
37 +
38 ###########################################################
39 # Tests disabled due to issues in test262 importer script #
40 ###########################################################