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:
panzhenyu1
2022-06-28 17:20:12 +08:00
parent 66e5c25b89
commit 3b96951d5c
+2 -2
View File
@@ -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;