]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: check errno in pvc macro
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Tue, 3 May 2011 12:02:58 +0000 (15:02 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Fri, 20 May 2011 09:48:41 +0000 (12:48 +0300)
commit6baa47e6b91363fa6b760d2a5592dc3fd3991b26
tree2e75cb56c450e9151807b84db5617734c4bc8a23
parentb722a1afe37eab14a5482c9e1efd5e6d625fa171
fs-tests: integck: check errno in pvc macro

All errors but write errors have corresponding CHECK(), so if something
gets wrong we fail. But in case of I/O errors we do not fail if an
unexpected error happens, which makes it difficult to trace issues.
Inject the errno checking to the pvc macro to make sure we fail if
errno is not EROFS.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
tests/fs-tests/integrity/integck.c