diff --git a/test-tool/test_compareandwrite_simple.c b/test-tool/test_compareandwrite_simple.c index d3499d1..b4b840e 100644 --- a/test-tool/test_compareandwrite_simple.c +++ b/test-tool/test_compareandwrite_simple.c @@ -48,6 +48,8 @@ test_compareandwrite_simple(void) n = 256; if (n + 0U > num_blocks) n = num_blocks; + if (maxbl + 0U > num_blocks) + maxbl = num_blocks; logging(LOG_VERBOSE, LOG_BLANK_LINE); logging(LOG_VERBOSE, "Test COMPARE_AND_WRITE of 1-%d blocks at the "