aboutsummaryrefslogtreecommitdiffstats
path: root/community/goffice/testsuite-workaround.patch
blob: 247e9427e85a17576d271a65be951ab1f964c899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
ugly workaround for i386
https://bugzilla.gnome.org/show_bug.cgi?id=794115

diff --git a/tests/test-quad.c b/tests/test-quad.c
index c33d416..3d45b4c 100644
--- a/tests/test-quad.c
+++ b/tests/test-quad.c
@@ -300,6 +300,11 @@ static void
 trig_tests (void)
 {
 	double d;
+#if defined(i386) || defined(__i386__) || defined(__i386)
+#define MAX_TRIG_TEST 1
+#else
+#define MAX_TRIG_TEST 10
+#endif
 
 	TEST1 (0);
 	TEST1 (0.25);
@@ -311,7 +316,7 @@ trig_tests (void)
 	TEST1 (-0.75);
 	TEST1 (-1);
 
-	for (d = 0; d < 10; d += 0.125) {
+	for (d = 0; d < MAX_TRIG_TEST; d += 0.125) {
 		TEST2(d);
 		TEST2(-d);
 	}