diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-04-23 11:26:29 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2020-04-23 17:40:39 +0200 |
commit | e34a1463e0cf236ca0612b1e0850f89964e4c066 (patch) | |
tree | 25f3ce1dce2d1de31f394cb6bec1189c0ae28d6a /sc | |
parent | 56c2030433c397fcdc964a5ee38e3a6b493ac2d2 (diff) |
tdf#132278: sc: Add unittest
Change-Id: Iaba8917fb18e86c68701b13b0ff26246c3cc8986
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92746
Tested-by: Jenkins
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/data/ods/tdf132278.ods | bin | 0 -> 35018 bytes | |||
-rw-r--r-- | sc/qa/unit/subsequent_filters-test.cxx | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/sc/qa/unit/data/ods/tdf132278.ods b/sc/qa/unit/data/ods/tdf132278.ods Binary files differnew file mode 100644 index 000000000000..256ab18d62b1 --- /dev/null +++ b/sc/qa/unit/data/ods/tdf132278.ods diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index ac4de0827b5c..7d8799d83a1c 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -227,6 +227,7 @@ public: void testTdf100709XLSX(); void testTdf97598XLSX(); void testTdf110440XLSX(); + void testTdf132278(); void testTdf130959(); void testTdf131380(); void testTdf111974XLSM(); @@ -373,6 +374,7 @@ public: CPPUNIT_TEST(testTdf100709XLSX); CPPUNIT_TEST(testTdf97598XLSX); CPPUNIT_TEST(testTdf110440XLSX); + CPPUNIT_TEST(testTdf132278); CPPUNIT_TEST(testTdf130959); CPPUNIT_TEST(testTdf131380); CPPUNIT_TEST(testTdf111974XLSM); @@ -3544,6 +3546,18 @@ void ScFiltersTest::testTdf110440XLSX() xDocSh->DoClose(); } +void ScFiltersTest::testTdf132278() +{ + // Would crash without the fix on loading + ScDocShellRef xDocSh = loadDoc("tdf132278.", FORMAT_ODS); + CPPUNIT_ASSERT_MESSAGE("Failed to open doc", xDocSh.is()); + + ScDocument& rDoc = xDocSh->GetDocument(); + rDoc.CalcAll(); // perform hard re-calculation. + + xDocSh->DoClose(); +} + void ScFiltersTest::testTdf130959() { // Would crash without the fix on loading |