From 14c14094e8587d28eb9cd2a3b5c0c57b355635b5 Mon Sep 17 00:00:00 2001 From: Aleksas Pantechovskis Date: Sun, 6 Mar 2016 16:47:31 +0200 Subject: tdf#65219 Fix temp files clean up in sc unit tests Change-Id: I23bf5d47c2cce31d6dd076eeac58cb2ce47b248a Reviewed-on: https://gerrit.libreoffice.org/22953 Tested-by: Jenkins Reviewed-by: Michael Stahl --- sc/qa/extras/new_cond_format.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sc/qa/extras/new_cond_format.cxx') diff --git a/sc/qa/extras/new_cond_format.cxx b/sc/qa/extras/new_cond_format.cxx index c4fab7cd85f7..0ac9888d539b 100644 --- a/sc/qa/extras/new_cond_format.cxx +++ b/sc/qa/extras/new_cond_format.cxx @@ -25,7 +25,10 @@ using namespace css; namespace sc_apitest { -#define NUMBER_OF_TESTS 5 +// tearDown checks this value before disposing mxCompnent +// if NUMBER_OF_TESTS is less than the number of tests that call init(), +// then the component is created again but not disposed, resulting in temp file leak +#define NUMBER_OF_TESTS 7 class ScConditionalFormatTest : public CalcUnoApiTest { -- cgit