mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-10-07 16:13:49 +00:00
!2992 resolve bug for heaptrackertest
Merge pull request !2992 from buzhuyu/master
This commit is contained in:
commit
b67c35e3e8
@ -545,7 +545,7 @@ HWTEST_F_L0(HeapTrackerTest, FileDescriptorStreamWriteChunk)
|
||||
std::string fileName = "test.StreamWriteChunk";
|
||||
fd = open(fileName.c_str(), O_RDONLY);
|
||||
if (fd < 0) {
|
||||
fd = open(fileName.c_str(), O_RDWR | O_CREAT);
|
||||
fd = open(fileName.c_str(), O_RDWR | O_CREAT, S_IRWXU | S_IRWXG | S_IROTH);
|
||||
}
|
||||
FileDescriptorStream fileStream(fd);
|
||||
testString = "Hello!";
|
||||
|
Loading…
Reference in New Issue
Block a user