aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-17 06:26:45 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-20 12:48:42 +0300
commitd1446aa7c64113d0822f9a04326e417d60ae34c2 (patch)
tree5426de8e59c28efa76a435d4586055e61245fa00
parentd7c961cf40667b81973f75277ad5a386811c163c (diff)
fs-tests: integck: return error if fsync fails
If 'fsync()' or 'fdatasync()' fail we have to return an error, but we by mistake were returning 0 (success). Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--tests/fs-tests/integrity/integck.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fs-tests/integrity/integck.c b/tests/fs-tests/integrity/integck.c
index 81d384f..83706f8 100644
--- a/tests/fs-tests/integrity/integck.c
+++ b/tests/fs-tests/integrity/integck.c
@@ -1280,6 +1280,8 @@ static int file_write(struct file_info *file, int fd)
pcv("fdatasync failed for %s",
get_file_name(file));
}
+ if (ret)
+ return -1;
file->clean = 1;
}