summaryrefslogtreecommitdiff
path: root/vcl/source/uitest
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-21 03:49:52 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-03-21 20:56:46 +0000
commit05101670aa885bf3c3972c9f75f8003c06837ff7 (patch)
tree5d78b7a46050007e2e2d2d3132c1efb2216fc325 /vcl/source/uitest
parent9be498dac23a48f45d6a63e69dfca83622c9cdf5 (diff)
uitest: always start with a clean file
Change-Id: I0ad8d63a2dda2da3c58a626ccf9d60085c1521d5 Reviewed-on: https://gerrit.libreoffice.org/35515 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'vcl/source/uitest')
-rw-r--r--vcl/source/uitest/logger.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx
index f56cc349860b..3fa60deb70a8 100644
--- a/vcl/source/uitest/logger.cxx
+++ b/vcl/source/uitest/logger.cxx
@@ -29,7 +29,7 @@ UITestLogger::UITestLogger():
osl::Directory::createPath(aDirPath);
OUString aFilePath = aDirPath + OUString::fromUtf8(pFile);
- maStream.Open(aFilePath, StreamMode::READWRITE);
+ maStream.Open(aFilePath, StreamMode::READWRITE | StreamMode::TRUNC);
mbValid = true;
}
}