summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2014-10-10 15:23:33 +0200
committerMichael Stahl <mstahl@redhat.com>2014-10-11 00:28:47 +0200
commit3d85ec29ddd73ed996debdcf118f8c32774362ed (patch)
tree2eed1fd2ab3ef3aa405f4f4374472b8c8ed6ee56 /filter
parent5e27d23d7e665cc0aeac8fc9ea2236bf8bc088ff (diff)
filter: stop leaking temp files in xsltfilter test
Change-Id: Icefec168910ba0b059f4b1887ec67cce8505ffd6
Diffstat (limited to 'filter')
-rw-r--r--filter/qa/cppunit/xslt-test.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/filter/qa/cppunit/xslt-test.cxx b/filter/qa/cppunit/xslt-test.cxx
index 1a580d0b36a2..f9945eac8952 100644
--- a/filter/qa/cppunit/xslt-test.cxx
+++ b/filter/qa/cppunit/xslt-test.cxx
@@ -122,6 +122,8 @@ void XsltFilterTest::testXsltCopyNew()
sal_uInt64 size(0);
foo.getSize(size);
CPPUNIT_ASSERT(size > 1000); // check that something happened
+ foo.close();
+ osl_removeFile(tempURL.pData);
}
void XsltFilterTest::testXsltCopyOld()
@@ -182,6 +184,8 @@ void XsltFilterTest::testXsltCopyOld()
sal_uInt64 size(0);
foo.getSize(size);
CPPUNIT_ASSERT(size > 1000); // check that something happened
+ foo.close();
+ osl_removeFile(tempURL.pData);
}
CPPUNIT_TEST_SUITE_REGISTRATION(XsltFilterTest);