fix capacity checks in READ(6) tests

This commit is contained in:
Jon Hermansen
2014-03-11 10:44:54 -07:00
parent 270db13f7c
commit d348633763
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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++) {