aboutsummaryrefslogtreecommitdiffstats
path: root/community/goffice/testsuite-workaround.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-03-07 13:30:41 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2018-03-07 13:31:54 +0000
commit80ca1c093bcb7982de9424af9331edd0f49a110e (patch)
treea627df4438dd22882ce2d01ba45d677055cb5185 /community/goffice/testsuite-workaround.patch
parentf812cc3cdc7b190f179239fa0dd9f7c3ba96a735 (diff)
community/goffice: workaround for testsuite on i386
Testsuite is broken on x86. upstream: https://bugzilla.gnome.org/show_bug.cgi?id=794115 We do an ugly workaround for now.
Diffstat (limited to 'community/goffice/testsuite-workaround.patch')
-rw-r--r--community/goffice/testsuite-workaround.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/community/goffice/testsuite-workaround.patch b/community/goffice/testsuite-workaround.patch
new file mode 100644
index 00000000000..247e9427e85
--- /dev/null
+++ b/community/goffice/testsuite-workaround.patch
@@ -0,0 +1,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);
+ }