aboutsummaryrefslogtreecommitdiff
path: root/tests/mtd-tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mtd-tests')
-rw-r--r--tests/mtd-tests/nandpagetest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mtd-tests/nandpagetest.c b/tests/mtd-tests/nandpagetest.c
index 2b16cc9..c6812df 100644
--- a/tests/mtd-tests/nandpagetest.c
+++ b/tests/mtd-tests/nandpagetest.c
@@ -143,7 +143,7 @@ static void process_options(int argc, char **argv)
if (optind < argc)
usage(EXIT_FAILURE);
- if (ebcnt < 2)
+ if (ebcnt >= 0 && ebcnt < 2)
errmsg_die("Cannot run with less than two blocks.");
if (peb < 0)
peb = 0;