summaryrefslogtreecommitdiffstats
path: root/debian/patches/fix-uicheck-tests-on-i386.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/fix-uicheck-tests-on-i386.patch')
-rw-r--r--debian/patches/fix-uicheck-tests-on-i386.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/fix-uicheck-tests-on-i386.patch b/debian/patches/fix-uicheck-tests-on-i386.patch
new file mode 100644
index 000000000..8d5b280f0
--- /dev/null
+++ b/debian/patches/fix-uicheck-tests-on-i386.patch
@@ -0,0 +1,34 @@
+Description: fix rounding errors that cause autopkgtests to fail on i386
+Author: Olivier Tilloy <olivier.tilloy@canonical.com>
+
+--- a/sc/qa/uitest/statistics/anova.py
++++ b/sc/qa/uitest/statistics/anova.py
+@@ -98,7 +98,7 @@ class anova(UITestCase):
+ self.assertEqual(get_cell_by_position(document, 0, 6, 5).getValue(), 10)
+ self.assertEqual(get_cell_by_position(document, 0, 6, 6).getValue(), 10)
+ self.assertEqual(get_cell_by_position(document, 0, 6, 8).getString(), "SS")
+- self.assertEqual(round(get_cell_by_position(document, 0, 6, 9).getValue(),11), 1876.56832844573)
++ self.assertEqual(round(get_cell_by_position(document, 0, 6, 9).getValue(),10), 1876.5683284457)
+ self.assertEqual(round(get_cell_by_position(document, 0, 6, 10).getValue(),10), 6025.1090909091)
+ #bug 80583
+ self.assertEqual(round(get_cell_by_position(document, 0, 6, 11).getValue(),11), 7901.67741935484)
+@@ -128,7 +128,7 @@ class anova(UITestCase):
+ self.assertEqual(round(get_cell_by_position(document, 0, 9, 9).getValue(),13), 4.3604117704492)
+
+ self.assertEqual(get_cell_by_position(document, 0, 10, 8).getString(), "P-value")
+- self.assertEqual(round(get_cell_by_position(document, 0, 10, 9).getValue(),14), 0.02246149518799)
++ self.assertEqual(round(get_cell_by_position(document, 0, 10, 9).getValue(),12), 0.022461495188)
+
+ self.assertEqual(get_cell_by_position(document, 0, 11, 8).getString(), "F critical")
+ self.assertEqual(round(get_cell_by_position(document, 0, 11, 9).getValue(),13), 3.3403855582378)
+--- a/sc/qa/uitest/statistics/descriptiveStatistics.py
++++ b/sc/qa/uitest/statistics/descriptiveStatistics.py
+@@ -109,7 +109,7 @@ class descriptiveStatistics(UITestCase):
+ self.assertEqual(round(get_cell_by_position(document, 0, 6, 7).getValue(),11) , 139.49090909091)
+ self.assertEqual(round(get_cell_by_position(document, 0, 6, 8).getValue(),12) , 11.810626955878)
+ self.assertEqual(round(get_cell_by_position(document, 0, 6, 9).getValue(),13) , -1.4621677980825)
+- self.assertEqual(round(get_cell_by_position(document, 0, 6, 10).getValue(),14) , 0.01524095329036)
++ self.assertEqual(round(get_cell_by_position(document, 0, 6, 10).getValue(),11) , 0.01524095329)
+ self.assertEqual(get_cell_by_position(document, 0, 6, 11).getValue() , 31)
+ self.assertEqual(get_cell_by_position(document, 0, 6, 12).getValue() , 26)
+ self.assertEqual(get_cell_by_position(document, 0, 6, 13).getValue() , 57)