summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2017-09-28 12:40:45 +0300
committerTor Lillqvist <tml@collabora.com>2017-09-28 14:19:15 +0300
commitd2cf510af2ab8a03e343b03773f0cfcc1c71cd22 (patch)
tree966fe88d6c7d2474bd2398ca7119e86b9a635728 /sc
parent19910c461230f70bb9e98ad44db3525f0d755724 (diff)
The OpenCL XIRR test fails randomly on some machines so bin it
We don't even use OpenCL for XIRR normally anyway. Change-Id: I4bd76e9c5a0ad2222bef47d801f956fda1da568c
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/data/ods/opencl/financial/XIRR.odsbin59488 -> 0 bytes
-rw-r--r--sc/qa/unit/opencl-test.cxx25
2 files changed, 0 insertions, 25 deletions
diff --git a/sc/qa/unit/data/ods/opencl/financial/XIRR.ods b/sc/qa/unit/data/ods/opencl/financial/XIRR.ods
deleted file mode 100644
index a9d2476d1066..000000000000
--- a/sc/qa/unit/data/ods/opencl/financial/XIRR.ods
+++ /dev/null
Binary files differ
diff --git a/sc/qa/unit/opencl-test.cxx b/sc/qa/unit/opencl-test.cxx
index 83ed36b81010..a17f1a4e84b9 100644
--- a/sc/qa/unit/opencl-test.cxx
+++ b/sc/qa/unit/opencl-test.cxx
@@ -141,7 +141,6 @@ public:
void testMathFormulaArcCos();
void testMathFormulaSqrt();
void testMathFormulaArcCosHyp();
- void testFinancialXirrFormula();
void testFinacialNPVFormula();
void testStatisticalFormulaNormsdist();
void testStatisticalFormulaNorminv();
@@ -370,7 +369,6 @@ public:
CPPUNIT_TEST(testMathFormulaArcCos);
CPPUNIT_TEST(testMathFormulaSqrt);
CPPUNIT_TEST(testMathFormulaArcCosHyp);
- CPPUNIT_TEST(testFinancialXirrFormula);
CPPUNIT_TEST(testFinacialNPVFormula);
CPPUNIT_TEST(testStatisticalFormulaNormsdist);
CPPUNIT_TEST(testStatisticalFormulaNorminv);
@@ -2744,29 +2742,6 @@ void ScOpenCLTest:: testFinancialIPMTFormula()
}
}
-void ScOpenCLTest:: testFinancialXirrFormula()
-{
- if(!initTestEnv("opencl/financial/XIRR.", FORMAT_ODS, false))
- return;
- ScDocument& rDoc = xDocSh->GetDocument();
- rDoc.CalcAll();
-
- for (SCROW i = 1; i <= 10; ++i)
- {
- double fFormula = rDoc.GetValue(ScAddress(2, i, 0));
- double fExpected = rDoc.GetValue(ScAddress(3, i, 0));
- CPPUNIT_ASSERT(rtl::math::approxEqual(fExpected, fFormula));
- }
- for (SCROW i = 18; i <= 27; ++i)
- {
- double fFormula = rDoc.GetValue(ScAddress(2, i, 0));
- double fExpected = rDoc.GetValue(ScAddress(3, i, 0));
- CPPUNIT_ASSERT(rtl::math::approxEqual(fExpected, fFormula));
- }
-
-
-}
-
void ScOpenCLTest::testStatisticalFormulaChiSqDist()
{
if(!initTestEnv("opencl/statistical/CHISQDIST.", FORMAT_ODS, false))