summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit/FontFeatureTest.cxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-06-21 11:10:16 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-06-21 11:11:17 +0200
commit50c8eb70e6ae68794d0867c86c96f4f1b946e38e (patch)
tree0f8f457a30ffc35ff00d9e538387f8bc6d23f589 /vcl/qa/cppunit/FontFeatureTest.cxx
parent954403938f00645d92520efc4433c440a133c0b9 (diff)
disable testGetFontFeatures if bundled fonts aren't available
Change-Id: Ie644e605f749a486ba4590d1ec2a9536a06c9847
Diffstat (limited to 'vcl/qa/cppunit/FontFeatureTest.cxx')
-rw-r--r--vcl/qa/cppunit/FontFeatureTest.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/FontFeatureTest.cxx b/vcl/qa/cppunit/FontFeatureTest.cxx
index 5ab293574d71..866c69f463f8 100644
--- a/vcl/qa/cppunit/FontFeatureTest.cxx
+++ b/vcl/qa/cppunit/FontFeatureTest.cxx
@@ -35,6 +35,9 @@ public:
void FontFeatureTest::testGetFontFeatures()
{
+// "Linux Libertine G" is a font bundeled with LO, but sometimes the
+// bundled fonts aren't available so we need to disable test in that case
+#if !TEST_FONTS_MISSING
ScopedVclPtrInstance<VirtualDevice> aVDev(*Application::GetDefaultDevice(),
DeviceFormat::DEFAULT, DeviceFormat::DEFAULT);
aVDev->SetOutputSizePixel(Size(10, 10));
@@ -104,6 +107,7 @@ void FontFeatureTest::testGetFontFeatures()
CPPUNIT_ASSERT_EQUAL(sal_uInt32(2), rParameter2.getCode());
CPPUNIT_ASSERT(!rParameter2.getDescription().isEmpty());
}
+#endif // !TEST_FONTS_MISSING
}
void FontFeatureTest::testParseFeature()