diff options
Diffstat (limited to 'tests/mtd-tests')
-rw-r--r-- | tests/mtd-tests/nandpagetest.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/mtd-tests/nandpagetest.c b/tests/mtd-tests/nandpagetest.c index c6812df..115cedb 100644 --- a/tests/mtd-tests/nandpagetest.c +++ b/tests/mtd-tests/nandpagetest.c @@ -551,8 +551,12 @@ int main(int argc, char **argv) } printf("verified %u eraseblocks\n", i); - if (crosstest()) - goto out; + if (ebcnt > 1) { + if (crosstest()) + goto out; + } else { + printf("skipping erasecrosstest, 2 erase blocks needed\n"); + } if (erasecrosstest()) goto out; |