diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-09-23 11:18:24 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-09-23 11:18:24 +0200 |
commit | b7f2df2165a7b708cc64fe709edac0e385be52fd (patch) | |
tree | 45c113c958e92c919fbd2822b714f445572c5013 | |
parent | 56b647b3a384db53bc55c56b2ae70e08c20e148b (diff) |
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
-rw-r--r-- | sw/qa/extras/inc/swmodeltestbase.hxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index c3628dff2457..e283bc3050b8 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(); } /** |