sc/qa/unit/opencl-test.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 2ac636406995e6b11297bc20244c498991264791
Author: Markus Mohrhard <[email protected]>
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 c9d4e25..b2d4b87 100644
--- a/sc/qa/unit/opencl-test.cxx
+++ b/sc/qa/unit/opencl-test.cxx
@@ -714,6 +714,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);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits