diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-08-03 14:49:32 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-08-03 16:42:04 +0200 |
commit | c379994973dd730c0ee2fdc8854a06b202f9f150 (patch) | |
tree | 9e3427f260059e14df5c84f0943fc61bb58ae605 /dbaccess/qa | |
parent | f659ec61a27a1a9fbdcb76a68e8de18a8a9fbbd7 (diff) |
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@redhat.com>
Diffstat (limited to 'dbaccess/qa')
-rw-r--r-- | dbaccess/qa/unit/hsqldb.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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); |