Kaydet (Commit) bab55118 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst f25c985b
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment