diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-18 00:54:36 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-11-18 00:54:36 +0100 |
commit | f99736820a23cb7e37139607713658dea1c69dd4 (patch) | |
tree | 31278cc6170ac92e202b12529d4891c8364aa376 /sc/qa/unit | |
parent | 30e5bdcbf5bb3e4f848748bb2d8196bb0c3c3c93 (diff) |
disable test if no OpenCL platform is found
Diffstat (limited to 'sc/qa/unit')
-rw-r--r-- | sc/qa/unit/opencl-test.cxx | 3 |
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); |