From 8679b2803109d007a3f429c04a8300ba34f2473e Mon Sep 17 00:00:00 2001 From: Adrian Hunter Date: Fri, 14 Sep 2007 18:00:19 +0300 Subject: fs-tests: fix bug in simple test_2 Signed-off-by: Adrian Hunter Signed-off-by: Artem Bityutskiy --- tests/fs-tests/lib/tests.c | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') 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); -- cgit v1.2.3