linux/drivers/mtd/tests
Brian Norris b9c2571e0d mtd: tests: abort torturetest on erase errors
commit 68f2981503 upstream.

The torture test should quit once it actually induces an error in the
flash. This step was accidentally removed during refactoring.

Without this fix, the torturetest just continues infinitely, or until
the maximum cycle count is reached. e.g.:

   ...
   [ 7619.218171] mtd_test: error -5 while erasing EB 100
   [ 7619.297981] mtd_test: error -5 while erasing EB 100
   [ 7619.377953] mtd_test: error -5 while erasing EB 100
   [ 7619.457998] mtd_test: error -5 while erasing EB 100
   [ 7619.537990] mtd_test: error -5 while erasing EB 100
   ...

Fixes: 6cf78358c9 ("mtd: mtd_torturetest: use mtd_test helpers")
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2015-01-16 06:59:33 -08:00
..
Makefile mtd: tests: rename sources in order to link a helper object 2013-08-30 21:34:06 +01:00
mtd_nandecctest.c mtd: tests: mtd_nandecctest: Use IS_ENABLED() macro 2014-01-03 11:22:21 -08:00
mtd_test.c mtd: tests: incorporate error message for mtdtest_write() 2013-08-30 21:36:06 +01:00
mtd_test.h mtd: tests: introduce helper functions 2013-08-30 21:28:22 +01:00
nandbiterrs.c mtd: nand: add a helper to detect the nand type 2013-10-27 16:27:06 -07:00
oobtest.c mtd: nand: add a helper to detect the nand type 2013-10-27 16:27:06 -07:00
pagetest.c mtd: nand: add a helper to detect the nand type 2013-10-27 16:27:06 -07:00
readtest.c mtd: tests: incorporate error message for mtdtest_read() 2013-08-30 21:36:05 +01:00
speedtest.c mtd: tests: incorporate error message for mtdtest_write() 2013-08-30 21:36:06 +01:00
stresstest.c mtd: tests: incorporate error message for mtdtest_write() 2013-08-30 21:36:06 +01:00
subpagetest.c mtd: nand: add a helper to detect the nand type 2013-10-27 16:27:06 -07:00
torturetest.c mtd: tests: abort torturetest on erase errors 2015-01-16 06:59:33 -08:00