diff options
author | Rene Engelhard <rene@debian.org> | 2019-09-16 21:09:13 +0200 |
---|---|---|
committer | Rene Engelhard <rene@debian.org> | 2019-09-16 21:11:21 +0200 |
commit | 78c2a22daa544af90b773d93850e583a0b1b7f9d (patch) | |
tree | 6320cfa58857c7c22c6ad7dea767464a023f5c28 /starmath/qa | |
parent | f3251c3185c68f07975aacb3502dfaf7b2dabccd (diff) |
disable testSmTmpDeviceRestoreFont unless we actually have fonts
.., since Linux Libertine G isn't guranteed to be there othweise
Regression from 78d225f51404d1a98795541bc9c84f7405502411
Change-Id: I1e87e4e01154cca524837a2021a359bf223c50af
Diffstat (limited to 'starmath/qa')
-rw-r--r-- | starmath/qa/cppunit/test_starmath.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
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() { |