summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-02-27 10:06:38 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2020-02-27 12:01:00 +0100
commit5c6adee9f11c78d7a2731e015d270edeb5c5191e (patch)
tree3f33916f87778426b07737214fa986de4efce560
parent5c3dae90e9bd0232ea790c1a79eaefaf2b74a144 (diff)
tdf#130959: Add unittest
Change-Id: Ib66a2a48b6e0d746fc54d2b1987a574c26ea1c1e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89619 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r--sc/qa/unit/data/xlsx/tdf130959.xlsxbin0 -> 38676 bytes
-rw-r--r--sc/qa/unit/subsequent_filters-test.cxx10
2 files changed, 10 insertions, 0 deletions
diff --git a/sc/qa/unit/data/xlsx/tdf130959.xlsx b/sc/qa/unit/data/xlsx/tdf130959.xlsx
new file mode 100644
index 000000000000..3f1b16c2c5a3
--- /dev/null
+++ b/sc/qa/unit/data/xlsx/tdf130959.xlsx
Binary files differ
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 4038430dceee..ecc1a1003ee1 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 testTdf130959();
void testTdf111974XLSM();
void testTdf83672XLSX();
@@ -371,6 +372,7 @@ public:
CPPUNIT_TEST(testTdf100709XLSX);
CPPUNIT_TEST(testTdf97598XLSX);
CPPUNIT_TEST(testTdf110440XLSX);
+ CPPUNIT_TEST(testTdf130959);
CPPUNIT_TEST(testTdf111974XLSM);
CPPUNIT_TEST(testTdf83672XLSX);
@@ -3540,6 +3542,14 @@ void ScFiltersTest::testTdf110440XLSX()
xDocSh->DoClose();
}
+void ScFiltersTest::testTdf130959()
+{
+ // Would crash without the fix on loading
+ ScDocShellRef xDocSh = loadDoc("tdf130959.", FORMAT_XLSX);
+ CPPUNIT_ASSERT_MESSAGE("Failed to open doc", xDocSh.is());
+ xDocSh->DoClose();
+}
+
void ScFiltersTest::testTdf111974XLSM()
{
// Would crash without the fix on loading