summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-02-25 17:06:31 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-03-14 13:38:44 +0100
commitbcf71c2c604a555364d2c6cc94e0b8cc6dc52553 (patch)
treececb14eb4915c2e78dd8a44935e9dc8713991ff0 /vcl
parent102327e60cc0bf55251f1e3495f4483e4646352f (diff)
the test implicitly requires pdfium
Attempt to fix build issue found by "RandomCondig" tb build #244 Change-Id: I8b6a0a3d0f812a3220fb0d7d21318871454f7eca Reviewed-on: https://gerrit.libreoffice.org/34646 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> (cherry picked from commit 89b64e865bfb6739be07d1fb0b5dfa5fa3651a44)
Diffstat (limited to 'vcl')
-rw-r--r--vcl/qa/cppunit/pdfexport/pdfexport.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
index bcc3345ae2b5..949ef6109043 100644
--- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx
+++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
@@ -7,6 +7,8 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+#include <config_features.h>
+
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XStorable.hpp>
@@ -34,11 +36,15 @@ class PdfExportTest : public test::BootstrapFixture, public unotest::MacrosTest
public:
virtual void setUp() override;
virtual void tearDown() override;
+#if HAVE_FEATURE_PDFIUM
/// Tests that a pdf image is roundtripped back to PDF as a vector format.
void testTdf106059();
+#endif
CPPUNIT_TEST_SUITE(PdfExportTest);
+#if HAVE_FEATURE_PDFIUM
CPPUNIT_TEST(testTdf106059);
+#endif
CPPUNIT_TEST_SUITE_END();
};
@@ -58,6 +64,7 @@ void PdfExportTest::tearDown()
test::BootstrapFixture::tearDown();
}
+#if HAVE_FEATURE_PDFIUM
void PdfExportTest::testTdf106059()
{
// Import the bugdoc and export as PDF.
@@ -93,6 +100,7 @@ void PdfExportTest::testTdf106059()
// This dictionary key was missing, so the XObject wasn't a reference one.
CPPUNIT_ASSERT(pReferenceXObject->Lookup("Ref"));
}
+#endif
CPPUNIT_TEST_SUITE_REGISTRATION(PdfExportTest);