linux/drivers/mtd/tests
Brian Norris 68f2981503 mtd: tests: abort torturetest on erase errors
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>
Cc: <stable@vger.kernel.org>
2014-12-12 19:28:43 -08:00
..
Makefile
mtd_nandecctest.c
mtd_test.c mtd: tests: fix integer overflow issues 2014-08-19 11:53:08 -07:00
mtd_test.h
nandbiterrs.c mtd: tests: fix integer overflow issues 2014-08-19 11:53:08 -07:00
oobtest.c mtd: oobtest: correct printf() format specifier for 'size_t' 2014-11-20 01:26:51 -08:00
pagetest.c mtd: tests: fix integer overflow issues 2014-08-19 11:53:08 -07:00
readtest.c mtd: tests: fix integer overflow issues 2014-08-19 11:53:08 -07:00
speedtest.c mtd: tests: fix integer overflow issues 2014-08-19 11:53:08 -07:00
stresstest.c
subpagetest.c mtd: tests: fix integer overflow issues 2014-08-19 11:53:08 -07:00
torturetest.c mtd: tests: abort torturetest on erase errors 2014-12-12 19:28:43 -08:00