sw/qa/extras/inc/swmodeltestbase.hxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit b7f2df2165a7b708cc64fe709edac0e385be52fd Author: Stephan Bergmann <sberg...@redhat.com> Date: Tue Sep 23 11:18:24 2014 +0200 Keep files of failing tests around (Arguably, such files should be stored in a workdir/CppunitTest/... directory removed and freshly created before every test run, instead of in TMPDIR.) Change-Id: I1e5928db399e6ed39143ebfd3844c7dd46820537 diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index c3628df..e283bc3 100644 --- a/sw/qa/extras/inc/swmodeltestbase.hxx +++ b/sw/qa/extras/inc/swmodeltestbase.hxx @@ -209,12 +209,14 @@ protected: // If the testcase is stored in some other format, it's pointless to test. if (mustTestImportOf(filename)) { + maTempFile.EnableKillingFile(false); header(); preTest(filename); load(mpTestDocumentPath, filename); postTest(filename); verify(); finish(); + maTempFile.EnableKillingFile(); } } @@ -225,6 +227,7 @@ protected: */ void executeImportExportImportTest(const char* filename) { + maTempFile.EnableKillingFile(false); header(); preTest(filename); load(mpTestDocumentPath, filename); @@ -232,6 +235,7 @@ protected: postTest(filename); verify(); finish(); + maTempFile.EnableKillingFile(); } /** @@ -242,13 +246,16 @@ protected: */ void executeImportExport(const char* filename) { + maTempFile.EnableKillingFile(false); header(); preTest(filename); load(mpTestDocumentPath, filename); save(OUString::createFromAscii(mpFilter), maTempFile); + maTempFile.EnableKillingFile(false); postTest(filename); verify(); finish(); + maTempFile.EnableKillingFile(); } /** _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits