diff options
Diffstat (limited to 'fastos/src/tests/filetest.cpp')
-rw-r--r-- | fastos/src/tests/filetest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fastos/src/tests/filetest.cpp b/fastos/src/tests/filetest.cpp index d95580897d0..80045269c9e 100644 --- a/fastos/src/tests/filetest.cpp +++ b/fastos/src/tests/filetest.cpp @@ -674,7 +674,8 @@ public: int64_t position = file.GetPosition(); Progress(position == 0, "File pointer should be 0 after opening file"); - file.Read(buffer, 4); + ssize_t has_read = file.Read(buffer, 4); + Progress(has_read == 4, "Must read 4 bytes"); buffer[4] = '\0'; position = file.GetPosition(); Progress(position == 4, "File pointer should be 4 after reading 4 bytes"); |