sfx2/qa/cppunit/view.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 4049405dcde61fa66852dae72d811562c69b3920
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Mon Nov 25 22:46:22 2024 +0100
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Tue Nov 26 07:53:30 2024 +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_sfx2_view
    CPPUNIT_TEST_NAME=testLokHelperCommandValuesSignature::TestBody to fail with
    
    > sfx2/qa/cppunit/view.cxx:138:testLokHelperCommandValuesSignature::TestBody
    > assertion failed
    > - Expression: nSignatureTime != 0
    
    Change-Id: I35d7df0de1b63937920687444ea0698fc0856446
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177302
    Reviewed-by: Stephan Bergmann <[email protected]>
    Tested-by: Jenkins

diff --git a/sfx2/qa/cppunit/view.cxx b/sfx2/qa/cppunit/view.cxx
index 220a913b2ca6..d2c81d6e9a6e 100644
--- a/sfx2/qa/cppunit/view.cxx
+++ b/sfx2/qa/cppunit/view.cxx
@@ -119,7 +119,8 @@ CPPUNIT_TEST_FIXTURE(Sfx2ViewTest, 
testLokHelperAddCertifices)
 CPPUNIT_TEST_FIXTURE(Sfx2ViewTest, testLokHelperCommandValuesSignature)
 {
     // Given an unsigned PDF file:
-    loadFromFile(u"unsigned.pdf");
+    createTempCopy(u"unsigned.pdf");
+    loadFromURL(maTempFile.GetURL());
 
     // When extracting hashes:
     tools::JsonWriter aWriter;

Reply via email to