fix capacity checks in READ(6) tests
This commit is contained in:
@@ -29,7 +29,7 @@ test_read6_beyond_eol(void)
|
||||
{
|
||||
int i, ret;
|
||||
|
||||
if (num_blocks >= 0x1fffff) {
|
||||
if (num_blocks > 0x1fffff) {
|
||||
CU_PASS("LUN is too big for read-beyond-eol tests with READ6. Skipping test.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ test_read6_simple(void)
|
||||
|
||||
|
||||
logging(LOG_VERBOSE, "Test READ6 of 1-255 blocks at the end of the LUN");
|
||||
if (num_blocks >= 0x1fffff) {
|
||||
if (num_blocks > 0x200000) {
|
||||
CU_PASS("LUN is too big for read-at-eol tests with READ6. Skipping test.\n");
|
||||
} else {
|
||||
for (i = 1; i <= 255; i++) {
|
||||
|
||||
Reference in New Issue
Block a user