]> www.infradead.org Git - mtd-utils.git/commit
fs-tests: integck: improve re-mounting test coverage
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 24 Mar 2011 13:43:35 +0000 (15:43 +0200)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 24 Mar 2011 17:25:12 +0000 (19:25 +0200)
commit82869c99a0d0a948fa095c2e04cf01172f6338f3
treecdc00b3defff9e8e8ce2f4dea05320e2569927de
parent73d42dd57f6a6f246101928d7c7403058a6627a4
fs-tests: integck: improve re-mounting test coverage

The integck tests re-mounts the file-system from time to time
and checks the integrity afterwords. And it re-mounts always
the same-way: unmount and then mount R/W back. However, it is
better to do it differently some times, e.g.:

* re-mount R/O then re-mount R/W
* unmount then mount R/W
* both of the above
* unmount, mount R/O, then re-mount R/W
* etc.

This will give better test coverage. This patch does exactly
that by improving the 'tests_remount()' function.

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