Kaydet (Commit) f9973682 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

disable test if no OpenCL platform is found

üst 30e5bdcb
...@@ -712,6 +712,9 @@ void ScOpenclTest::testMathFormulaCos() ...@@ -712,6 +712,9 @@ void ScOpenclTest::testMathFormulaCos()
//[AMLOEXT-116] //[AMLOEXT-116]
void ScOpenclTest::testMathFormulaSinh() void ScOpenclTest::testMathFormulaSinh()
{ {
if (!detectOpenCLDevice())
return;
ScDocShellRef xDocSh = loadDoc("opencl/math/sinh.", XLS); ScDocShellRef xDocSh = loadDoc("opencl/math/sinh.", XLS);
enableOpenCL(); ScDocument* pDoc = xDocSh->GetDocument(); enableOpenCL(); ScDocument* pDoc = xDocSh->GetDocument();
CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true); CPPUNIT_ASSERT(pDoc); xDocSh->DoHardRecalc(true);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment