[Libreoffice-commits] core.git: sc/qa
Markus Mohrhard
markus.mohrhard at googlemail.com
Sun Nov 17 15:55:39 PST 2013
sc/qa/unit/opencl-test.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit f99736820a23cb7e37139607713658dea1c69dd4
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Mon Nov 18 00:54:36 2013 +0100
disable test if no OpenCL platform is found
diff --git a/sc/qa/unit/opencl-test.cxx b/sc/qa/unit/opencl-test.cxx
index ed38b61..3f90040 100644
--- a/sc/qa/unit/opencl-test.cxx
+++ b/sc/qa/unit/opencl-test.cxx
@@ -712,6 +712,9 @@ void ScOpenclTest::testMathFormulaCos()
//[AMLOEXT-116]
void ScOpenclTest::testMathFormulaSinh()
{
+ if (!detectOpenCLDevice())
+ return;
+
ScDocShellRef xDocSh = loadDoc("opencl/math/sinh.", XLS);
enableOpenCL(); ScDocument* pDoc = xDocSh->GetDocument();
CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true);
More information about the Libreoffice-commits
mailing list