diff options
author | Jan Holesovsky <kendy@collabora.com> | 2015-12-11 00:08:19 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-12-11 10:43:00 +0100 |
commit | b562c31d250dfb6cbf68711c0cbbbbb9eca3b62d (patch) | |
tree | 5126f4b3e135b7bc9e0244fedba8567f8edd3c7c /sc | |
parent | 7cc31b68c4c09f165f2e804847ba758820163f11 (diff) |
sc interpreter: Force OpenCL off when testing the s/w interpreter.
Change-Id: I2a459605021ee31b67b4bfbfd1f2e17ccbd22aeb
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/ucalc_formula.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc_formula.cxx b/sc/qa/unit/ucalc_formula.cxx index 69b46bb85b22..841ae6000295 100644 --- a/sc/qa/unit/ucalc_formula.cxx +++ b/sc/qa/unit/ucalc_formula.cxx @@ -803,11 +803,14 @@ void Test::testFormulaHashAndTag() }; bool bSwInterpreter = officecfg::Office::Common::Misc::UseSwInterpreter::get(); + bool bOpenCL = officecfg::Office::Common::Misc::UseOpenCL::get(); for (bool bForceSwInterpreter : { false, true }) { std::shared_ptr< comphelper::ConfigurationChanges > xBatch(comphelper::ConfigurationChanges::create()); officecfg::Office::Common::Misc::UseSwInterpreter::set(bForceSwInterpreter, xBatch); + if (bForceSwInterpreter) + officecfg::Office::Common::Misc::UseOpenCL::set(false, xBatch); xBatch->commit(); for (size_t i = 0; i < SAL_N_ELEMENTS(aVectorTests); ++i) @@ -828,6 +831,7 @@ void Test::testFormulaHashAndTag() std::shared_ptr< comphelper::ConfigurationChanges > xBatch(comphelper::ConfigurationChanges::create()); officecfg::Office::Common::Misc::UseSwInterpreter::set(bSwInterpreter, xBatch); + officecfg::Office::Common::Misc::UseOpenCL::set(bOpenCL, xBatch); xBatch->commit(); m_pDoc->DeleteTab(0); |