summaryrefslogtreecommitdiff
path: root/sc/qa/unit
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa/unit')
-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);