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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Aug 3 14:42:40 UTC 2020


 dbaccess/qa/unit/hsqldb.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit c379994973dd730c0ee2fdc8854a06b202f9f150
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Aug 3 14:49:32 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Aug 3 16:42:04 2020 +0200

    Make test operate on copy of .odb file
    
    For whatever reason, CppunitTest_dbaccess_hsqldb_test had recently started to
    modify binary dbaccess/qa/unit/data/hsqldb_empty.odb in-place.
    
    Change-Id: I07b5185ddf4b809ef1e1f977c5ab1c34e2e7f18a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100002
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/dbaccess/qa/unit/hsqldb.cxx b/dbaccess/qa/unit/hsqldb.cxx
index 5af5dff89fb5..e9b0b6bbf9f3 100644
--- a/dbaccess/qa/unit/hsqldb.cxx
+++ b/dbaccess/qa/unit/hsqldb.cxx
@@ -33,8 +33,9 @@ public:
  */
 void HSQLDBTest::testEmptyDBConnection()
 {
+    auto const file = createTempCopy("hsqldb_empty.odb");
     uno::Reference< XOfficeDatabaseDocument > xDocument =
-        getDocumentForFileName("hsqldb_empty.odb");
+        getDocumentForUrl(file.GetURL());
 
     getConnectionForDocument(xDocument);
 


More information about the Libreoffice-commits mailing list