summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/fs-tests/lib/tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fs-tests/lib/tests.c b/tests/fs-tests/lib/tests.c
index e2a6d5b..9b8f443 100644
--- a/tests/fs-tests/lib/tests.c
+++ b/tests/fs-tests/lib/tests.c
@@ -505,6 +505,7 @@ void tests_check_filled_file_fd(int fd)
ssize_t sz;
char buf[WRITE_BUFFER_SIZE];
+ CHECK(lseek(fd, 0, SEEK_SET) == 0);
do {
sz = read(fd, buf, WRITE_BUFFER_SIZE);
CHECK(sz >= 0);