[Libreoffice-commits] core.git: 2 commits - sc/qa

Markus Mohrhard markus.mohrhard at collabora.co.uk
Mon Mar 31 02:08:08 PDT 2014


 sc/qa/unit/filters-test.cxx            |    7 +++++++
 sc/qa/unit/subsequent_filters-test.cxx |    4 ++++
 2 files changed, 11 insertions(+)

New commits:
commit af9cb57b0d260eeb3433ab41d61b4b776b26e87f
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Mon Mar 31 11:00:14 2014 +0200

    close files after test
    
    Change-Id: Ibf04fa79570a2417c965e773a789827a86787471

diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 7c974c8..9d0368d 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -2423,6 +2423,8 @@ void ScFiltersTest::testPrintRangeODS()
     pRange = pDoc->GetRepeatRowRange(1);
     CPPUNIT_ASSERT(pRange);
     CPPUNIT_ASSERT_EQUAL(ScRange(0,2,0,0,4,0), *pRange);
+
+    xDocSh->DoClose();
 }
 
 void ScFiltersTest::testOutlineODS()
@@ -2476,6 +2478,8 @@ void ScFiltersTest::testOutlineODS()
         bool bVisible = pEntry->IsVisible();
         CPPUNIT_ASSERT_EQUAL(aRow[i].bVisible, bVisible);
     }
+
+    xDocSh->DoClose();
 }
 
 void ScFiltersTest::testColumnStyleXLSX()
commit 3d28cd4df4e951be29294c7ca5b820d711c5a7eb
Author: Markus Mohrhard <markus.mohrhard at collabora.co.uk>
Date:   Mon Mar 31 10:57:13 2014 +0200

    close the file at the end of the test
    
    Change-Id: I9e0636af65258646572da126e93766552fa1e1df

diff --git a/sc/qa/unit/filters-test.cxx b/sc/qa/unit/filters-test.cxx
index e556d53..b6d7d76 100644
--- a/sc/qa/unit/filters-test.cxx
+++ b/sc/qa/unit/filters-test.cxx
@@ -438,6 +438,8 @@ void ScFiltersTest::testLegacyCellAnchoredRotatedShape()
         pDoc = xDocSh->GetDocument();
         CPPUNIT_ASSERT(pDoc);
         impl_testLegacyCellAnchoredRotatedShape( pDoc, aRect, aAnchor );
+
+        xDocSh->DoClose();
     }
     {
         // This example doc contains cell anchored shape that is rotated, the
@@ -466,6 +468,7 @@ void ScFiltersTest::testLegacyCellAnchoredRotatedShape()
         // apply hefty ( 1 mm ) tolerence here, as some opensuse tinderbox
         // failing
         impl_testLegacyCellAnchoredRotatedShape( pDoc, aRect, aAnchor, 100 );
+
         xDocSh->DoClose();
     }
     {
@@ -491,6 +494,8 @@ void ScFiltersTest::testLegacyCellAnchoredRotatedShape()
         pDoc = xDocSh->GetDocument();
         CPPUNIT_ASSERT(pDoc);
         impl_testLegacyCellAnchoredRotatedShape( pDoc, aRect, aAnchor );
+
+        xDocSh->DoClose();
     }
 }
 
@@ -509,6 +514,8 @@ void ScFiltersTest::testEnhancedProtectionXLS()
     CPPUNIT_ASSERT(  pProt->isBlockEditable( ScRange( 0, 1, 0, 0, 2, 0)));  // union of two different editables
     CPPUNIT_ASSERT( !pProt->isBlockEditable( ScRange( 0, 0, 0, 0, 1, 0)));  // union of locked and editable
     CPPUNIT_ASSERT( !pProt->isBlockEditable( ScRange( 0, 2, 0, 0, 3, 0)));  // union of editable and password editable
+
+    xDocSh->DoClose();
 }
 
 ScFiltersTest::ScFiltersTest()


More information about the Libreoffice-commits mailing list