diff options
Diffstat (limited to 'dbaccess/qa/unit/hsql_binary_import.cxx')
-rw-r--r-- | dbaccess/qa/unit/hsql_binary_import.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dbaccess/qa/unit/hsql_binary_import.cxx b/dbaccess/qa/unit/hsql_binary_import.cxx index 8bc81c0587b1..2c1c332629cb 100644 --- a/dbaccess/qa/unit/hsql_binary_import.cxx +++ b/dbaccess/qa/unit/hsql_binary_import.cxx @@ -45,8 +45,9 @@ void HsqlBinaryImportTest::setUp() void HsqlBinaryImportTest::testBinaryImport() { - uno::Reference<XOfficeDatabaseDocument> xDocument - = getDocumentForFileName("hsqldb_migration_test.odb"); + // the migration requires the file to be writable + utl::TempFile const temp(createTempCopy("hsqldb_migration_test.odb")); + uno::Reference<XOfficeDatabaseDocument> const xDocument = getDocumentForUrl(temp.GetURL()); uno::Reference<XConnection> xConnection = getConnectionForDocument(xDocument); // at this point migration is already done |