sd/qa/unit/tiledrendering/tiledrendering2.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 1dab72d780e718cccfcc4fe6e722ac0c0822174b Author: Stephan Bergmann <stephan.bergm...@allotropia.de> AuthorDate: Wed Jan 15 10:07:32 2025 +0100 Commit: Stephan Bergmann <stephan.bergm...@allotropia.de> CommitDate: Wed Jan 15 13:01:52 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 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 e5f11c9e3925..e6b846769988 100644 --- a/sd/qa/unit/tiledrendering/tiledrendering2.cxx +++ b/sd/qa/unit/tiledrendering/tiledrendering2.cxx @@ -45,7 +45,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()); sd::ViewShell* pViewShell = pImpressDocument->GetDocShell()->GetViewShell(); sd::View* pView = pViewShell->GetView();