diff options
author | Andras Timar <andras.timar@collabora.com> | 2020-11-04 22:08:24 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-11-05 09:23:42 +0100 |
commit | 33ee9829fee1f6b80eb21b7a3d0e5a0f15ddf6f2 (patch) | |
tree | c27686e36c1b25fa8f54515adc5248f1b811d5df | |
parent | d3abe0a1fb2f2b546b164280c5562443dc1f4300 (diff) |
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.timar@collabora.com>
-rw-r--r-- | oox/qa/unit/drawingml.cxx | 1 | ||||
-rw-r--r-- | sfx2/qa/cppunit/test_misc.cxx | 1 | ||||
-rw-r--r-- | svx/qa/unit/customshapes.cxx | 1 | ||||
-rw-r--r-- | sw/qa/extras/htmlexport/htmlexport.cxx | 1 | ||||
-rw-r--r-- | xmloff/qa/unit/draw.cxx | 1 |
5 files changed, 5 insertions, 0 deletions
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()); |