Date: prev next · Thread: first prev next last
2017 Archives by date, by thread · List index


On Mon, May 22, 2017 at 12:55:56PM +0200, Khaled Hosny wrote:
On Mon, May 22, 2017 at 12:36:26PM +0200, Rene Engelhard wrote:
Hi,

On Mon, May 22, 2017 at 11:38:43AM +0200, Khaled Hosny wrote:
The test (naïvely?) assumes DejaVu Sans is always present since it is
one of the bundled fonts, if this is not true since the test needs to be
conditionally enabled somehow.

Maybe check it like the other fonts? If --without-fonts is specified that is.
See https://cgit.freedesktop.org/libreoffice/core/tree/configure.ac#n11251 ff.

That would do it I think.

This patch should do it. (Just tested configure for now)

Regards,

Rene
--- libreoffice-5.4.0.0.beta1/vcl/qa/cppunit/complextext.cxx    2017-05-18 12:48:14.000000000 +0200
+++ tmp/libreoffice-5.4.0.0.beta1/vcl/qa/cppunit/complextext.cxx        2017-05-22 
15:23:13.668459293 +0200
@@ -19,6 +19,8 @@
 #include <osl/file.hxx>
 #include <osl/process.h>
 
+#include <config_test.h>
+
 std::ostream& operator<<(std::ostream& rStream, const std::vector<long>& rVec)
 {
     rStream << "{ ";
@@ -41,13 +43,16 @@
 #endif
 
     CPPUNIT_TEST_SUITE(VclComplexTextTest);
+#if !TEST_FONTS_MISSING
     CPPUNIT_TEST(testArabic);
+#endif
 #if defined(_WIN32)
     CPPUNIT_TEST(testTdf95650);
 #endif
     CPPUNIT_TEST_SUITE_END();
 };
 
+#if !TEST_FONTS_MISSING
 void VclComplexTextTest::testArabic()
 {
     const unsigned char pOneTwoThreeUTF8[] = {
@@ -121,6 +126,7 @@
     (void)aRect; (void)aRectRot;
 #endif
 }
+#endif
 
 #if defined(_WIN32)
 void VclComplexTextTest::testTdf95650()
--- libreoffice-5.4.0.0.beta1/configure.ac      2017-05-18 12:48:14.000000000 +0200
+++ tmp/libreoffice-5.4.0.0.beta1/configure.ac  2017-05-22 15:51:26.406507002 +0200
@@ -11290,7 +11289,8 @@
     then
         AC_MSG_RESULT([ok])
     else
-        AC_MSG_RESULT([unknown ($FONTFILE)])
+        AC_MSG_WARN([unknown ($FONTFILE)])
+        add_warning "unknown ($FONTFILE)"
         TEST_FONTS_MISSING=1
     fi
 }
@@ -11315,9 +11315,11 @@
             TEST_FONTS_MISSING=1
         else
             test_font_map 'Calibri' 'Carlito'
+            test_font_map 'DejaVuSans' 'DejaVuSans'
             if test ${TEST_FONTS_MISSING} -eq 1
             then
                 AC_MSG_WARN([Unknown font mappings - unit tests disabled.])
+                add_warning "Unknown font mappings - unit tests disabled."
             fi
         fi
     else

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.