[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - sw/qa
Mike Kaganski
mike.kaganski at collabora.com
Thu Jan 25 17:36:46 UTC 2018
sw/qa/extras/uiwriter/uiwriter.cxx | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
New commits:
commit 61651849676ef1377f2e51675379bb4b7444557b
Author: Mike Kaganski <mike.kaganski at collabora.com>
Date: Fri Jan 19 10:14:07 2018 +0100
Don't create database files in $HOME
Regression from commit 46b3202bf883618f1585850191c19776861013ed
Change-Id: If8e0b309274ea14e996e0dde2d1ee9b49ff0f737
Reviewed-on: https://gerrit.libreoffice.org/48173
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/48477
Reviewed-by: Aron Budea <aron.budea at collabora.com>
Tested-by: Aron Budea <aron.budea at collabora.com>
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 5c96aacf7a1e..95206bf7944d 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -4649,13 +4649,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, nullptr, nullptr);
+ OUString sDataSource = SwDBManager::LoadAndRegisterDataSource(aDataSourceURI, nullptr, &aWorkDir);
CPPUNIT_ASSERT(!sDataSource.isEmpty());
// Insert a new field type for the mailmerge field
@@ -4689,6 +4692,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);
}
CPPUNIT_TEST_SUITE_REGISTRATION(SwUiWriterTest);
More information about the Libreoffice-commits
mailing list