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

Rene Engelhard (via logerrit) logerrit at kemper.freedesktop.org
Mon Sep 16 19:33:40 UTC 2019


 starmath/qa/cppunit/test_starmath.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 78c2a22daa544af90b773d93850e583a0b1b7f9d
Author:     Rene Engelhard <rene at debian.org>
AuthorDate: Mon Sep 16 21:09:13 2019 +0200
Commit:     Rene Engelhard <rene at debian.org>
CommitDate: Mon Sep 16 21:11:21 2019 +0200

    disable testSmTmpDeviceRestoreFont unless we actually have fonts
    
    .., since Linux Libertine G isn't guranteed to be there othweise
    
    Regression from 78d225f51404d1a98795541bc9c84f7405502411
    
    Change-Id: I1e87e4e01154cca524837a2021a359bf223c50af

diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx
index 793545879994..03622eb940d4 100644
--- a/starmath/qa/cppunit/test_starmath.cxx
+++ b/starmath/qa/cppunit/test_starmath.cxx
@@ -66,7 +66,9 @@ public:
     void replacePlaceholder();
     void viewZoom();
 
+#ifdef HAVE_MORE_FONTS
     void testSmTmpDeviceRestoreFont();
+#endif
 
     CPPUNIT_TEST_SUITE(Test);
     CPPUNIT_TEST(editUndoRedo);
@@ -87,7 +89,9 @@ public:
     CPPUNIT_TEST(ParseErrorDoubleSubsupscript);
     CPPUNIT_TEST(replacePlaceholder);
     CPPUNIT_TEST(viewZoom);
+#ifdef HAVE_MORE_FONTS
     CPPUNIT_TEST(testSmTmpDeviceRestoreFont);
+#endif
     CPPUNIT_TEST_SUITE_END();
 
 private:
@@ -141,6 +145,7 @@ void Test::tearDown()
     BootstrapFixture::tearDown();
 }
 
+#ifdef HAVE_MORE_FONTS
 void Test::testSmTmpDeviceRestoreFont()
 {
     ScopedVclPtrInstance<Printer> pPrinter;
@@ -169,6 +174,7 @@ void Test::testSmTmpDeviceRestoreFont()
     CPPUNIT_ASSERT(aNewFont != pPrinter->GetFont());
     CPPUNIT_ASSERT_EQUAL(COL_RED, pPrinter->GetTextColor());
 }
+#endif
 
 void Test::editMarker()
 {


More information about the Libreoffice-commits mailing list