summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-24 05:27:31 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-03-24 05:28:10 +0100
commit894b5423a8f22ac78a47eb3274969fe5f609fad1 (patch)
treed3626f492af7d8c1ee1261c9179199142a52936d
parent6c2acf78ad988c100d4163f369411482e5fd0f44 (diff)
close documents at the end of the test
Change-Id: Ic0b60a2420c82f431c5790483e922ed2164f09fb
-rw-r--r--sc/qa/unit/helper/qahelper.hxx1
-rw-r--r--sc/qa/unit/subsequent_export-test.cxx14
2 files changed, 15 insertions, 0 deletions
diff --git a/sc/qa/unit/helper/qahelper.hxx b/sc/qa/unit/helper/qahelper.hxx
index 58f6f4b0dc98..b610f5883144 100644
--- a/sc/qa/unit/helper/qahelper.hxx
+++ b/sc/qa/unit/helper/qahelper.hxx
@@ -281,6 +281,7 @@ public:
CPPUNIT_ASSERT_EQUAL(nExpectedHeight, nHeight);
}
}
+ xShell->DoClose();
}
}
};
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index db0879d5e759..5dbadba82182 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -150,6 +150,8 @@ void ScExportTest::testPasswordExport()
ScDocument* pLoadedDoc = xDocSh->GetDocument();
double aVal = pLoadedDoc->GetValue(0,0,0);
ASSERT_DOUBLES_EQUAL(aVal, 1.0);
+
+ xDocSh->DoClose();
}
void ScExportTest::testConditionalFormatExportODS()
@@ -164,6 +166,8 @@ void ScExportTest::testConditionalFormatExportODS()
OUString aCSVPath;
createCSVPath( aCSVFile, aCSVPath );
testCondFile(aCSVPath, pDoc, 0);
+
+ xDocSh->DoClose();
}
void ScExportTest::testConditionalFormatExportXLSX()
@@ -178,6 +182,8 @@ void ScExportTest::testConditionalFormatExportXLSX()
OUString aCSVPath;
createCSVPath( aCSVFile, aCSVPath );
testCondFile(aCSVPath, pDoc, 0);
+
+ xDocSh->DoClose();
}
void ScExportTest::testColorScaleExportODS()
@@ -193,6 +199,8 @@ void ScExportTest::testColorScaleExportODS()
testColorScale2Entry_Impl(pDoc);
testColorScale3Entry_Impl(pDoc);
+
+ xDocSh->DoClose();
}
void ScExportTest::testColorScaleExportXLSX()
@@ -208,6 +216,8 @@ void ScExportTest::testColorScaleExportXLSX()
testColorScale2Entry_Impl(pDoc);
testColorScale3Entry_Impl(pDoc);
+
+ xDocSh->DoClose();
}
void ScExportTest::testDataBarExportODS()
@@ -222,6 +232,8 @@ void ScExportTest::testDataBarExportODS()
CPPUNIT_ASSERT(pDoc);
testDataBar_Impl(pDoc);
+
+ xDocSh->DoClose();
}
void ScExportTest::testDataBarExportXLSX()
@@ -236,6 +248,8 @@ void ScExportTest::testDataBarExportXLSX()
CPPUNIT_ASSERT(pDoc);
testDataBar_Impl(pDoc);
+
+ xDocSh->DoClose();
}
void ScExportTest::testMiscRowHeightExport()