]> www.infradead.org Git - mtd-utils.git/commitdiff
fs-tests: fix bug in simple test_2
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Fri, 14 Sep 2007 15:00:19 +0000 (18:00 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Mon, 17 Sep 2007 11:17:37 +0000 (14:17 +0300)
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/fs-tests/lib/tests.c

index e2a6d5bad0627701e868cd4a81156079e2fc0db6..9b8f44330543290ff027d8fb5219a36aff7a8040 100644 (file)
@@ -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);