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

fix crash in perfcheck

Change-Id: I8e053f5f0c6994c44485f61f5b3dc489271b8c5f
üst 5b72c4ce
......@@ -44,8 +44,6 @@ using namespace css::uno;
namespace sc_apitest {
#define NUMBER_OF_TESTS 3
class ScPerfObj : public CalcUnoApiTest
{
public:
......@@ -135,13 +133,10 @@ void ScPerfObj::setUp()
void ScPerfObj::tearDown()
{
if (nTest == NUMBER_OF_TESTS)
if (mxComponent.is())
{
if (mxComponent.is())
{
closeDocument(mxComponent);
mxComponent.clear();
}
closeDocument(mxComponent);
mxComponent.clear();
}
CalcUnoApiTest::tearDown();
}
......
......@@ -40,6 +40,9 @@ endif
ifneq (,$(filter perfcheck,$(MAKECMDGOALS)))
$(if $(ENABLE_VALGRIND),,$(call gb_Output_error,Running performance tests with empty $$(ENABLE_VALGRIND) does not make sense))
gb_CppunitTest_VALGRINDTOOL := valgrind --tool=callgrind --dump-instr=yes --instr-atstart=no --simulate-cache=yes --dump-instr=yes --collect-bus=yes --branch-sim=yes
ifneq ($(strip $(VALGRIND_GDB)),)
gb_CppunitTest_VALGRINDTOOL += --vgdb=yes --vgdb-error=0
endif
endif
# defined by platform
......
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