embeddedobj/qa/cppunit/general.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 308f65e9306f032651cbf9db53fbba1186a50caf
Author:     Thorsten Behrens <[email protected]>
AuthorDate: Fri Feb 14 18:48:26 2025 +0100
Commit:     Thorsten Behrens <[email protected]>
CommitDate: Fri Feb 14 18:48:26 2025 +0100

    Disable pdf import tests if poppler is disabled
    
    Change-Id: Ifc02a594a38580f2b6d96b676ee678e28d333856

diff --git a/embeddedobj/qa/cppunit/general.cxx 
b/embeddedobj/qa/cppunit/general.cxx
index 02ff289342a6..b02993ad1ace 100644
--- a/embeddedobj/qa/cppunit/general.cxx
+++ b/embeddedobj/qa/cppunit/general.cxx
@@ -7,6 +7,7 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
+#include <config_features.h>
 #include <test/unoapi_test.hxx>
 
 #include <com/sun/star/embed/XStorage.hpp>
@@ -110,6 +111,7 @@ CPPUNIT_TEST_FIXTURE(Test, testInsertFileConfigPdf)
     });
     mxComponent.set(loadFromDesktop("private:factory/swriter", 
"com.sun.star.text.TextDocument"));
 
+#if HAVE_FEATURE_POPPLER
     // Insert a PDF file as an embedded object.
     uno::Reference<embed::XStorage> xStorage = 
comphelper::OStorageHelper::GetTemporaryStorage();
     comphelper::EmbeddedObjectContainer aContainer(xStorage);
@@ -124,6 +126,7 @@ CPPUNIT_TEST_FIXTURE(Test, testInsertFileConfigPdf)
     // 2) this is non-Windows, so OLE embedding is not an option
     // so silently still loading the data into Writer would be bad.
     CPPUNIT_ASSERT(!xObject.is());
+#endif
 }
 
 CPPUNIT_PLUGIN_IMPLEMENT();

Reply via email to