Skip to content

Commit

Permalink
Fix #685 change file create to use read write
Browse files Browse the repository at this point in the history
  • Loading branch information
zanzaben committed Jan 11, 2021
1 parent 81c4fa8 commit 1e42a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/file-api-test/file-api-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ void TestChmod(void)
/*Make a file to test on. Start in Read only mode */
strncpy(filename, "/drive0/Filename1", sizeof(filename) - 1);
filename[sizeof(filename) - 1] = 0;
status = OS_OpenCreate(&fd, filename, OS_FILE_FLAG_CREATE | OS_FILE_FLAG_TRUNCATE, OS_READ_ONLY);
status = OS_OpenCreate(&fd, filename, OS_FILE_FLAG_CREATE , OS_READ_WRITE);
UtAssert_True(status >= OS_SUCCESS, "status after creat = %d", (int)status);
status = OS_close(fd);
UtAssert_True(status == OS_SUCCESS, "status after close = %d", (int)status);
Expand Down

0 comments on commit 1e42a5e

Please sign in to comment.