mirror of
https://github.com/openharmony/ark_runtime_core.git
synced 2026-07-01 13:17:23 -04:00
ARK WINDOWS run test262 case failed when reading abc file
related issue: https://gitee.com/openharmony/ark_runtime_core/issues/I5EJN9 Signed-off-by: panzhenyu1 <panzhenyu1@huawei.com> Change-Id: Iee5f77ccbf15319c4028a651f2ef6b45b0762dee
This commit is contained in:
@@ -33,13 +33,13 @@ static int GetFlags(Mode mode)
|
||||
return _O_RDONLY | _O_BINARY;
|
||||
|
||||
case Mode::READWRITE:
|
||||
return _O_RDWR;
|
||||
return _O_RDWR | _O_BINARY;
|
||||
|
||||
case Mode::WRITEONLY:
|
||||
return _O_WRONLY | _O_CREAT | _O_TRUNC | _O_BINARY; // NOLINT(hicpp-signed-bitwise)
|
||||
|
||||
case Mode::READWRITECREATE:
|
||||
return _O_RDWR | _O_CREAT; // NOLINT(hicpp-signed-bitwise)
|
||||
return _O_RDWR | _O_CREAT | _O_BINARY; // NOLINT(hicpp-signed-bitwise)
|
||||
|
||||
default:
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user