From c379994973dd730c0ee2fdc8854a06b202f9f150 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 3 Aug 2020 14:49:32 +0200 Subject: 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 --- dbaccess/qa/unit/hsqldb.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dbaccess/qa') 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); -- cgit