diff options
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index f32c512d84de..6f4903f98d2f 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -5765,13 +5765,16 @@ void SwUiWriterTest::testTdf115013() { const OUString sColumnName("Name with spaces, \"quotes\" and \\backslashes"); + utl::TempFile aTempDir(nullptr, true); + const OUString aWorkDir = aTempDir.GetURL(); + //create new writer document SwDoc* pDoc = createDoc(); { // Load and register data source const OUString aDataSourceURI(m_directories.getURLFromSrc(DATA_DIRECTORY) + "datasource.ods"); - OUString sDataSource = SwDBManager::LoadAndRegisterDataSource(aDataSourceURI, nullptr); + OUString sDataSource = SwDBManager::LoadAndRegisterDataSource(aDataSourceURI, &aWorkDir); CPPUNIT_ASSERT(!sDataSource.isEmpty()); // Insert a new field type for the mailmerge field @@ -5805,6 +5808,8 @@ void SwUiWriterTest::testTdf115013() OUString sColumn = static_cast<SwDBFieldType*>(pField->GetTyp())->GetColumnName(); // The column name must come correct after round trip CPPUNIT_ASSERT_EQUAL(sColumnName, sColumn); + + utl::removeTree(aWorkDir); } void SwUiWriterTest::testTdf115065() |