[Libreoffice-commits] core.git: sw/qa

Stephan Bergmann sbergman at redhat.com
Tue Sep 23 02:18:58 PDT 2014


 sw/qa/extras/inc/swmodeltestbase.hxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit b7f2df2165a7b708cc64fe709edac0e385be52fd
Author: Stephan Bergmann <sbergman at 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();
     }
 
     /**


More information about the Libreoffice-commits mailing list