[Libreoffice-commits] core.git: sc/qa
Stephan Bergmann
sbergman at redhat.com
Mon Sep 8 02:34:36 PDT 2014
sc/qa/unit/helper/qahelper.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 7f96d6d5b6dfcb3970fefaca74f004fad071297e
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Mon Sep 8 11:31:30 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: Ibf1f54fd3d3f9c354c12067e671196e182ef7159
diff --git a/sc/qa/unit/helper/qahelper.cxx b/sc/qa/unit/helper/qahelper.cxx
index b5d9a17..9db7c6e 100644
--- a/sc/qa/unit/helper/qahelper.cxx
+++ b/sc/qa/unit/helper/qahelper.cxx
@@ -609,7 +609,6 @@ ScDocShellRef ScBootstrapFixture::saveAndReload(
{
utl::TempFile aTempFile;
- aTempFile.EnableKillingFile();
SfxMedium aStoreMedium( aTempFile.GetURL(), STREAM_STD_WRITE );
sal_uInt32 nExportFormat = 0;
if (nFormatType == ODS_FORMAT_TYPE)
@@ -634,6 +633,7 @@ ScDocShellRef ScBootstrapFixture::saveAndReload(
validate(aTempFile.GetFileName(), test::OOXML);
else if (nFormatType == ODS_FORMAT_TYPE)
validate(aTempFile.GetFileName(), test::ODF);
+ aTempFile.EnableKillingFile();
return xDocSh;
}
More information about the Libreoffice-commits
mailing list