summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2020-05-02 17:16:52 +0200
committerXisco Faulí <xiscofauli@libreoffice.org>2020-05-02 22:27:14 +0200
commit3b30c934bb4f17af41ceda32b4054e59da9f6f07 (patch)
treed9e61fdd26fa7266709b546e436b5a8c25f569b2
parent4505bc1701be73aab6543520cd342f0f0c8b7853 (diff)
tdf#106724: sw: Add unittest
Change-Id: Icb65e69a92bd1bbad8db945bf91153eb5c730d23 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93314 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/extras/ooxmlexport/data/tdf106724.docxbin0 -> 21692 bytes
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport8.cxx5
2 files changed, 5 insertions, 0 deletions
diff --git a/sw/qa/extras/ooxmlexport/data/tdf106724.docx b/sw/qa/extras/ooxmlexport/data/tdf106724.docx
new file mode 100644
index 000000000000..3cce6ea7c361
--- /dev/null
+++ b/sw/qa/extras/ooxmlexport/data/tdf106724.docx
Binary files differ
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx
index 18ffbe4d6cf8..772f4bd9dc82 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport8.cxx
@@ -452,6 +452,11 @@ DECLARE_OOXMLEXPORT_TEST(testN778828, "n778828.docx")
CPPUNIT_ASSERT_EQUAL(2, getPages());
}
+DECLARE_OOXMLEXPORT_TEST(testTdf106724, "tdf106724.docx")
+{
+ // This document simply crashed the importer.
+}
+
DECLARE_OOXMLEXPORT_TEST(testN779834, "n779834.docx")
{
// This document simply crashed the importer.