diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-21 21:30:44 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-01-21 22:52:25 +0100 |
commit | 09192bc178f7f7b21ef63508f516f52790f3307d (patch) | |
tree | 2338d587716931eff38feecd0de8c94efdb5f5e1 /sc/qa | |
parent | e2d46da076f43a7c0d56fc486b9f15339243f7c9 (diff) |
tdf#122643: sc_subsequent_filters: Add unittest
Change-Id: I89aed7ffbe40ddda19baff569b08580f1e4f118d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109770
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/data/ods/tdf122643.ods | bin | 0 -> 13045 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/tdf122643.ods b/sc/qa/unit/data/ods/tdf122643.ods Binary files differnew file mode 100644 index 000000000000..7c1d5485531e --- /dev/null +++ b/sc/qa/unit/data/ods/tdf122643.ods diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index dea5fa845d80..6635feb5e10b 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -254,6 +254,7 @@ public: void testTdf100709XLSX(); void testTdf97598XLSX(); void testTdf110440XLSX(); + void testTdf122643(); void testTdf132278(); void testTdf130959(); void testTdf129410(); @@ -438,6 +439,7 @@ public: CPPUNIT_TEST(testTdf100709XLSX); CPPUNIT_TEST(testTdf97598XLSX); CPPUNIT_TEST(testTdf110440XLSX); + CPPUNIT_TEST(testTdf122643); CPPUNIT_TEST(testTdf132278); CPPUNIT_TEST(testTdf130959); CPPUNIT_TEST(testTdf129410); @@ -3842,6 +3844,18 @@ void ScFiltersTest::testTdf110440XLSX() xDocSh->DoClose(); } +void ScFiltersTest::testTdf122643() +{ + // Would crash without the fix on loading + ScDocShellRef xDocSh = loadDoc(u"tdf122643.", 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::testTdf132278() { // Would crash without the fix on loading |