From: Adrian Hunter Date: Fri, 14 Sep 2007 15:00:19 +0000 (+0300) Subject: fs-tests: fix bug in simple test_2 X-Git-Tag: v1.2.0~143 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8679b2803109d007a3f429c04a8300ba34f2473e;p=mtd-utils.git fs-tests: fix bug in simple test_2 Signed-off-by: Adrian Hunter Signed-off-by: Artem Bityutskiy --- 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);