[Libreoffice-commits] core.git: sw/qa

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Thu Aug 6 22:17:34 UTC 2020


 sw/qa/extras/odfexport/data/tdf135144.docx |binary
 sw/qa/extras/odfexport/odfexport.cxx       |    7 +++++++
 2 files changed, 7 insertions(+)

New commits:
commit a0b531af93276db90f63a2fccde3694c46dcac83
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Wed Aug 5 11:30:46 2020 +0200
Commit:     Xisco Fauli <xiscofauli at libreoffice.org>
CommitDate: Fri Aug 7 00:16:50 2020 +0200

    tdf#135144: sw_odfexport: Add unittest for crash
    
    Change-Id: I0dcd483aa74e3bf5a75a074f4fbd6793984815b7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100157
    Tested-by: Jenkins
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>

diff --git a/sw/qa/extras/odfexport/data/tdf135144.docx b/sw/qa/extras/odfexport/data/tdf135144.docx
new file mode 100644
index 000000000000..012c40432b78
Binary files /dev/null and b/sw/qa/extras/odfexport/data/tdf135144.docx differ
diff --git a/sw/qa/extras/odfexport/odfexport.cxx b/sw/qa/extras/odfexport/odfexport.cxx
index 293252176a05..4f0a04cf69f8 100644
--- a/sw/qa/extras/odfexport/odfexport.cxx
+++ b/sw/qa/extras/odfexport/odfexport.cxx
@@ -479,6 +479,13 @@ DECLARE_ODFEXPORT_TEST(testTdf131621, "tdf131621.ott")
     CPPUNIT_ASSERT_EQUAL( 1, getPages() );
 }
 
+DECLARE_ODFEXPORT_TEST(testTdf135144, "tdf135144.docx")
+{
+    //Crashes at import time after roundtrip
+    CPPUNIT_ASSERT_EQUAL(3, getPages());
+    CPPUNIT_ASSERT_EQUAL(4, getShapes());
+}
+
 DECLARE_ODFEXPORT_TEST(testTdf130950, "tdf130950.odt")
 {
     //Crashes at import time


More information about the Libreoffice-commits mailing list