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

Markus Mohrhard markus.mohrhard at googlemail.com
Thu Mar 2 23:27:35 UTC 2017


 sw/qa/extras/ww8export/ww8export.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit cedac0b9b0e4e10ad6ca468a804855c35fd52477
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Thu Mar 2 23:43:17 2017 +0100

    the test seems to depend on our bundled fonts
    
    Try to fix the "RandomConfig" tinderbox when --with-fonts=no is
    selected. E.g. run #255
    
    Change-Id: Ie43953ad1511cd00bdc82717211f61edefa64b12
    Reviewed-on: https://gerrit.libreoffice.org/34839
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/sw/qa/extras/ww8export/ww8export.cxx b/sw/qa/extras/ww8export/ww8export.cxx
index 14d3020..98ce476 100644
--- a/sw/qa/extras/ww8export/ww8export.cxx
+++ b/sw/qa/extras/ww8export/ww8export.cxx
@@ -46,6 +46,8 @@
 #include <view.hxx>
 #include <wrtsh.hxx>
 
+#include <config_test.h>
+
 #include <bordertest.hxx>
 
 #define convertTwipToMm100(TWIP) ((TWIP) >= 0 ? (((TWIP)*127L+36L)/72L) : (((TWIP)*127L-36L)/72L))
@@ -597,6 +599,7 @@ DECLARE_WW8EXPORT_TEST(testLayoutHanging, "fdo68967.doc")
     // This must not hang in layout
 }
 
+#if !TEST_FONTS_MISSING
 DECLARE_WW8EXPORT_TEST(testfdo68963, "fdo68963.doc")
 {
     // The problem was that the text was not displayed.
@@ -605,6 +608,7 @@ DECLARE_WW8EXPORT_TEST(testfdo68963, "fdo68963.doc")
     // all crossreference bookmarks should have a target.  Shouldn't be any "Reference source not found" in the xml
     CPPUNIT_ASSERT_EQUAL(static_cast<sal_Int32>(-1), parseDump("/root/page/body/txt[24]/Special[2]","rText").indexOf("Reference source not found"));
 }
+#endif
 
 DECLARE_WW8EXPORT_TEST(testTdf99100, "tdf99100.doc")
 {


More information about the Libreoffice-commits mailing list