[Libreoffice-commits] core.git: vcl/source

Markus Mohrhard markus.mohrhard at googlemail.com
Tue Mar 21 20:57:08 UTC 2017


 vcl/source/uitest/logger.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 05101670aa885bf3c3972c9f75f8003c06837ff7
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Tue Mar 21 03:49:52 2017 +0100

    uitest: always start with a clean file
    
    Change-Id: I0ad8d63a2dda2da3c58a626ccf9d60085c1521d5
    Reviewed-on: https://gerrit.libreoffice.org/35515
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

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;
     }
 }


More information about the Libreoffice-commits mailing list