aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Hunter <ext-adrian.hunter@nokia.com>2007-09-14 18:00:19 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-09-17 14:17:37 +0300
commit8679b2803109d007a3f429c04a8300ba34f2473e (patch)
treee1d128f8e9382fcf48ed9ede4bf55ab8dcf55de6 /tests
parent55ea7048d0ebf0b9c8ed06ca6b9025a90ae15b16 (diff)
fs-tests: fix bug in simple test_2
Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com> Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
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);