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

Markus Mohrhard markus.mohrhard at googlemail.com
Sat Feb 25 19:10:20 UTC 2017


 vcl/qa/cppunit/pdfexport/pdfexport.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 89b64e865bfb6739be07d1fb0b5dfa5fa3651a44
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sat Feb 25 17:06:31 2017 +0100

    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 at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
index bcc3345..949ef61 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);
 


More information about the Libreoffice-commits mailing list