summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/osl/file/osl_File.cxx2
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();