Skip to content

Commit

Permalink
🎨 (spikes): Update spike lk_filesystem_kit
Browse files Browse the repository at this point in the history
  • Loading branch information
MMyster authored and ladislas committed Mar 10, 2022
1 parent 9490185 commit c01a779
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/FileSystemKit/tests/File_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ TEST_F(FileTest, tellFile)
{
auto input_data = std::to_array<uint8_t>({0x61, 0x62, 0x63, 0x64, 0x65, 0x66}); // "abcdef"

file.open(tempFilename);
file.open(tempFilename, "w");
file.write(input_data);
file.seek(3);

Expand Down
2 changes: 1 addition & 1 deletion spikes/lk_filesystem_kit/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ auto main() -> int
log_info("Data : %s", buffer.data());

file.seek(seek_temp);
log_info("Position indicator set to %d", seek_temp);
log_info("Position indicator set to %d", file.tell());
log_info("Reading...");
if (auto bytes = file.read(buffer); bytes != (size - seek_temp)) {
log_error("Fail to read file");
Expand Down

0 comments on commit c01a779

Please sign in to comment.