oox/qa/unit/drawingml.cxx              |    1 +
 sfx2/qa/cppunit/test_misc.cxx          |    1 +
 svx/qa/unit/customshapes.cxx           |    1 +
 sw/qa/extras/htmlexport/htmlexport.cxx |    1 +
 xmloff/qa/unit/draw.cxx                |    1 +
 5 files changed, 5 insertions(+)

New commits:
commit 33ee9829fee1f6b80eb21b7a3d0e5a0f15ddf6f2
Author:     Andras Timar <andras.ti...@collabora.com>
AuthorDate: Wed Nov 4 22:08:24 2020 +0100
Commit:     Andras Timar <andras.ti...@collabora.com>
CommitDate: Thu Nov 5 09:23:42 2020 +0100

    clean up some temp files after running tests
    
    Change-Id: Ia28e96cf1f6ec476f202e99877fa80e93d691278
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105314
    Tested-by: Jenkins
    Reviewed-by: Andras Timar <andras.ti...@collabora.com>

diff --git a/oox/qa/unit/drawingml.cxx b/oox/qa/unit/drawingml.cxx
index 6a0415b257f2..0dd0f0991154 100644
--- a/oox/qa/unit/drawingml.cxx
+++ b/oox/qa/unit/drawingml.cxx
@@ -88,6 +88,7 @@ void OoxDrawingmlTest::loadAndReload(const OUString& rURL, 
const OUString& rFilt
     utl::MediaDescriptor aMediaDescriptor;
     aMediaDescriptor["FilterName"] <<= rFilterName;
     utl::TempFile aTempFile;
+    aTempFile.EnableKillingFile();
     xStorable->storeToURL(aTempFile.GetURL(), 
aMediaDescriptor.getAsConstPropertyValueList());
     mxComponent->dispose();
     validate(aTempFile.GetFileName(), test::OOXML);
diff --git a/sfx2/qa/cppunit/test_misc.cxx b/sfx2/qa/cppunit/test_misc.cxx
index 4ed4ba1fb11a..99c5aa40a696 100644
--- a/sfx2/qa/cppunit/test_misc.cxx
+++ b/sfx2/qa/cppunit/test_misc.cxx
@@ -113,6 +113,7 @@ CPPUNIT_TEST_FIXTURE(MiscTest, testNoThumbnail)
     uno::Reference<frame::XStorable> xStorable(xComponent, uno::UNO_QUERY);
     CPPUNIT_ASSERT(xStorable.is());
     utl::TempFile aTempFile;
+    aTempFile.EnableKillingFile();
     uno::Sequence<beans::PropertyValue> aProperties(
         comphelper::InitPropertySequence({ { "NoThumbnail", uno::makeAny(true) 
} }));
     osl::File::remove(aTempFile.GetURL());
diff --git a/svx/qa/unit/customshapes.cxx b/svx/qa/unit/customshapes.cxx
index 57f1b5170b16..9117183acd29 100644
--- a/svx/qa/unit/customshapes.cxx
+++ b/svx/qa/unit/customshapes.cxx
@@ -780,6 +780,7 @@ CPPUNIT_TEST_FIXTURE(CustomshapesTest, testTdf136176)
     // Save and reload
     uno::Reference<frame::XStorable> xStorable(mxComponent, uno::UNO_QUERY);
     utl::TempFile aTempFile;
+    aTempFile.EnableKillingFile();
     utl::MediaDescriptor aMediaDescriptor;
     aMediaDescriptor["FilterName"] <<= OUString("draw8");
     xStorable->storeToURL(aTempFile.GetURL(), 
aMediaDescriptor.getAsConstPropertyValueList());
diff --git a/sw/qa/extras/htmlexport/htmlexport.cxx 
b/sw/qa/extras/htmlexport/htmlexport.cxx
index c96c1c8215b1..2554e7d23a7b 100644
--- a/sw/qa/extras/htmlexport/htmlexport.cxx
+++ b/sw/qa/extras/htmlexport/htmlexport.cxx
@@ -1072,6 +1072,7 @@ CPPUNIT_TEST_FIXTURE(SwHtmlDomExportTest, 
testReqifOle1PDF)
         = loadFromDesktop(maTempFile.GetURL(), 
"com.sun.star.text.TextDocument", aLoadProperties);
     xStorable.set(mxComponent, uno::UNO_QUERY);
     utl::TempFile aTempFile;
+    aTempFile.EnableKillingFile();
     aStoreProperties = {
         comphelper::makePropertyValue("FilterName", OUString("writer8")),
     };
diff --git a/xmloff/qa/unit/draw.cxx b/xmloff/qa/unit/draw.cxx
index 73d9ee918d34..8365b463efc6 100644
--- a/xmloff/qa/unit/draw.cxx
+++ b/xmloff/qa/unit/draw.cxx
@@ -56,6 +56,7 @@ CPPUNIT_TEST_FIXTURE(XmloffDrawTest, testTextBoxLoss)
     getComponent() = loadFromDesktop(aURL);
     uno::Reference<frame::XStorable> xStorable(getComponent(), uno::UNO_QUERY);
     utl::TempFile aTempFile;
+    aTempFile.EnableKillingFile();
     utl::MediaDescriptor aMediaDescriptor;
     aMediaDescriptor["FilterName"] <<= OUString("writer8");
     xStorable->storeToURL(aTempFile.GetURL(), 
aMediaDescriptor.getAsConstPropertyValueList());
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to