sc/qa/unit/opencl-test.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit f99736820a23cb7e37139607713658dea1c69dd4
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
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 ed38b61..3f90040 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);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to