From 05101670aa885bf3c3972c9f75f8003c06837ff7 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Tue, 21 Mar 2017 03:49:52 +0100 Subject: uitest: always start with a clean file Change-Id: I0ad8d63a2dda2da3c58a626ccf9d60085c1521d5 Reviewed-on: https://gerrit.libreoffice.org/35515 Tested-by: Jenkins Reviewed-by: Markus Mohrhard --- vcl/source/uitest/logger.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source/uitest') 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; } } -- cgit