summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-18 00:54:36 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-11-18 00:54:36 +0100
commitf99736820a23cb7e37139607713658dea1c69dd4 (patch)
tree31278cc6170ac92e202b12529d4891c8364aa376
parent30e5bdcbf5bb3e4f848748bb2d8196bb0c3c3c93 (diff)
disable test if no OpenCL platform is found
-rw-r--r--sc/qa/unit/opencl-test.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/qa/unit/opencl-test.cxx b/sc/qa/unit/opencl-test.cxx
index ed38b61b34d1..3f9004043c1a 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);