diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-11-19 12:24:01 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2020-11-19 20:49:09 +0100 |
commit | 0277c2c57f3990cb9078f11d0969faa1fb21a9d1 (patch) | |
tree | 47d8f28bd6e396b04e47ec6f6996778f739ad73b /sc/qa | |
parent | 3f8d9566cdf278d3412207aa15ac5a8c6a3757b4 (diff) |
tdf#129410: sc_subsequent_filters: Add unittest
Change-Id: Ie9bc4086559a53f83af9e2f6a6649c51a1009847
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106153
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/data/ods/tdf129410.ods | bin | 0 -> 13238 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/tdf129410.ods b/sc/qa/unit/data/ods/tdf129410.ods Binary files differnew file mode 100644 index 000000000000..975593b45e33 --- /dev/null +++ b/sc/qa/unit/data/ods/tdf129410.ods diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx index 74a06737a0c8..695163908da8 100644 --- a/sc/qa/unit/subsequent_filters-test.cxx +++ b/sc/qa/unit/subsequent_filters-test.cxx @@ -248,6 +248,7 @@ public: void testTdf110440XLSX(); void testTdf132278(); void testTdf130959(); + void testTdf129410(); void testTdf131380(); void testTdf129681(); void testTdf111974XLSM(); @@ -424,6 +425,7 @@ public: CPPUNIT_TEST(testTdf110440XLSX); CPPUNIT_TEST(testTdf132278); CPPUNIT_TEST(testTdf130959); + CPPUNIT_TEST(testTdf129410); CPPUNIT_TEST(testTdf131380); CPPUNIT_TEST(testTdf129681); CPPUNIT_TEST(testTdf111974XLSM); @@ -3689,6 +3691,18 @@ void ScFiltersTest::testTdf130959() xDocSh->DoClose(); } +void ScFiltersTest::testTdf129410() +{ + // Would crash without the fix on loading + ScDocShellRef xDocSh = loadDoc("tdf129410.", 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::testTdf131380() { ScDocShellRef xDocSh = loadDoc("tdf131380.", FORMAT_XLSX); |