]> www.infradead.org Git - mtd-utils.git/commit
mtd-tests: use pages during readtest and stress
authorRalph Siemsen <ralph.siemsen@linaro.org>
Thu, 2 Dec 2021 14:38:52 +0000 (09:38 -0500)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 6 Dec 2021 00:47:02 +0000 (01:47 +0100)
commit981d198cfc3545bb8226c336fdf001f067468e19
tree25e3654a85c1bb831a04bc5c0abf0d971eb7f96c
parenta2c6bbcf2f8e32532e64350ab76609e5db3c431b
mtd-tests: use pages during readtest and stress

Same fix as a2c6bbc ("mtd-tests: Read and write pages during speed
tests") but applied to flash_readtest and flash_stress.

Resolves failure of flash_readtest when subpages are present. The test
reads a (sub)page followed by the entire OOB. Upon reaching the 2nd
subpage, the OOB read fails because it is beyond the end of OOB.

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
tests/mtd-tests/flash_readtest.c
tests/mtd-tests/flash_stress.c