diff options
author | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2021-02-04 22:56:52 +0100 |
---|---|---|
committer | Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> | 2021-02-05 12:40:27 +0100 |
commit | 5e124e9d9d3bf3a55fe9956561db229d079288cc (patch) | |
tree | c4b789a2aa2b7159fdb9a2bd5275270c14e4252f /sal | |
parent | 896366b461b5a77ec29566ff9109d33bd5c3be8a (diff) |
osl_File checks: creation in root can also fail because of read-only filesystem
80b7949016fbc6addd54bf9f6cf300c756fd0f8a enabled a bunch of previously
disabled checks, but on m1 macs osl_File::open::open_004 fails the
assert, because it doesn't fail with E_ACCES, but with E_ROFS.
(probably nothing to do with apple silicon, but rather because of Big
Sur and using apfs as filesystem)
Change-Id: Ibd2168ba5fb9d859ea339713099c9bc8a799fcc7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110431
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/osl/file/osl_File.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/qa/osl/file/osl_File.cxx b/sal/qa/osl/file/osl_File.cxx index d0b50f6dfedb..a9f7183f673e 100644 --- a/sal/qa/osl/file/osl_File.cxx +++ b/sal/qa/osl/file/osl_File.cxx @@ -2224,7 +2224,7 @@ namespace osl_File File testFile(aTestFile); auto nError1 = testFile.open(osl_File_OpenFlag_Create); - bool bOK = (nError1 == File::E_ACCES); + bool bOK = (nError1 == File::E_ACCES || nError1 == File::E_ROFS); #ifdef _WIN32 bOK = true; /// in Windows, you can create file in c:\ any way. testFile.close(); |