sd/qa/unit/tiledrendering/tiledrendering2.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5cd4375f63e61e9cbaeca843a99d253a56020651
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Wed Jan 15 10:07:32 2025 +0100
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Wed Feb 26 08:59:29 2025 +0100

    Let a test use a copy of a SRCDIR test doc
    
    Whatever the reason, but running the test against a read-only SRCDIR caused
    CppunitTest_sd_tiledrendering2
    CPPUNIT_TEST_NAME=testInsertSignatureLineExternal::TestBody to fail with
    
    > 
sd/qa/unit/tiledrendering/tiledrendering2.cxx:64:testInsertSignatureLineExternal::TestBody
    > equality assertion failed
    > - Expected: 1
    > - Actual  : 0
    
    [ Miklos: on this branch, this fixes the problem that 'make check'
    results in a modified sd/qa/unit/tiledrendering/data/empty.pdf when it
    finishes; though it does succeed. ]
    
    Change-Id: I6fedd20bec3c36cd2f803a8cb0b4222863a6126f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180266
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>

diff --git a/sd/qa/unit/tiledrendering/tiledrendering2.cxx 
b/sd/qa/unit/tiledrendering/tiledrendering2.cxx
index 9a76076271b9..99fed8224ac1 100644
--- a/sd/qa/unit/tiledrendering/tiledrendering2.cxx
+++ b/sd/qa/unit/tiledrendering/tiledrendering2.cxx
@@ -46,7 +46,8 @@ CPPUNIT_TEST_FIXTURE(SdTiledRenderingTest, 
testInsertSignatureLineExternal)
 {
     // Given a PDF to be signed:
     uno::Sequence<beans::PropertyValue> aArgs = { 
comphelper::makePropertyValue("ReadOnly", true) };
-    loadWithParams(createFileURL(u"empty.pdf"), aArgs);
+    createTempCopy(u"empty.pdf");
+    loadWithParams(maTempFile.GetURL(), aArgs);
     SdXImpressDocument* pImpressDocument = 
dynamic_cast<SdXImpressDocument*>(mxComponent.get());
     pImpressDocument->initializeForTiledRendering({});
     sd::ViewShell* pViewShell = 
pImpressDocument->GetDocShell()->GetViewShell();

Reply via email to