[Libreoffice-commits] core.git: sfx2/qa
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Aug 9 14:57:24 UTC 2018
sfx2/qa/cppunit/test_misc.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit bab5511870e8ad847020645628df8090116f0e8b
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Aug 9 13:13:40 2018 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Aug 9 16:57:00 2018 +0200
Set umask /before/ using it
The test used to fail when umask originally was e.g. 077.
Change-Id: I21d346532698feebccc8bb3f6cb9a9dd3002a20e
Reviewed-on: https://gerrit.libreoffice.org/58757
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/sfx2/qa/cppunit/test_misc.cxx b/sfx2/qa/cppunit/test_misc.cxx
index 7162dfc58581..9c21ae95d704 100644
--- a/sfx2/qa/cppunit/test_misc.cxx
+++ b/sfx2/qa/cppunit/test_misc.cxx
@@ -119,6 +119,9 @@ void MiscTest::testNoThumbnail()
CPPUNIT_ASSERT(xComponent.is());
// Save it with the NoThumbnail option and assert that it has no thumbnail.
+#ifndef _WIN32
+ mode_t nMask = umask(022);
+#endif
uno::Reference<frame::XStorable> xStorable(xComponent, uno::UNO_QUERY);
CPPUNIT_ASSERT(xStorable.is());
utl::TempFile aTempFile;
@@ -132,7 +135,6 @@ void MiscTest::testNoThumbnail()
#ifndef _WIN32
// Check permissions of the URL after store.
- mode_t nMask = umask(022);
osl::DirectoryItem aItem;
CPPUNIT_ASSERT_EQUAL(osl::DirectoryItem::E_None,
osl::DirectoryItem::get(aTempFile.GetURL(), aItem));
More information about the Libreoffice-commits
mailing list