summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-11-28 10:21:13 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-11-28 11:55:29 +0100
commit03b5ef45ae3485e055bbbf44532835a5f8868b8e (patch)
tree7365d2c8f2139e37ad6681b52d63745dba6806dd
parent19e3bab1a8def52d9a60f67bd87697e828e37773 (diff)
tdf#152015: sw_odfimport: Add unittest
Change-Id: If7682b93973a8801a81ce9a887bf7bd1b9ac5594 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143374 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sw/qa/extras/odfimport/data/tdf152015.odtbin0 -> 37633 bytes
-rw-r--r--sw/qa/extras/odfimport/odfimport.cxx8
2 files changed, 8 insertions, 0 deletions
diff --git a/sw/qa/extras/odfimport/data/tdf152015.odt b/sw/qa/extras/odfimport/data/tdf152015.odt
new file mode 100644
index 000000000000..000bba207789
--- /dev/null
+++ b/sw/qa/extras/odfimport/data/tdf152015.odt
Binary files differ
diff --git a/sw/qa/extras/odfimport/odfimport.cxx b/sw/qa/extras/odfimport/odfimport.cxx
index 236c84143edc..6c8e5ec8230f 100644
--- a/sw/qa/extras/odfimport/odfimport.cxx
+++ b/sw/qa/extras/odfimport/odfimport.cxx
@@ -1103,6 +1103,14 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf120677)
// The document used to hang the layout, consuming memory until OOM
}
+CPPUNIT_TEST_FIXTURE(Test, testTdf152015)
+{
+ // it hangs at import time
+ createSwDoc("tdf152015.odt");
+
+ CPPUNIT_ASSERT_EQUAL( 1, getPages() );
+}
+
CPPUNIT_TEST_FIXTURE(Test, testTdf123829)
{
createSwDoc("tdf123829.odt");