From 45a3752d163a2348918690084405293c62f5eebb Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Mon, 2 Sep 2013 12:19:24 -0700 Subject: [PATCH] TESTS: Abort READ6 test if lun is bigger than what READ6 can address --- test-tool/test_read6_simple.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test-tool/test_read6_simple.c b/test-tool/test_read6_simple.c index 1799aaf..617f4ac 100644 --- a/test-tool/test_read6_simple.c +++ b/test-tool/test_read6_simple.c @@ -46,6 +46,11 @@ test_read6_simple(void) logging(LOG_VERBOSE, "Test READ6 of 1-255 blocks at the end of the LUN"); + if (num_blocks >= 0x1fffff) { + CU_PASS("LUN is too big for read-at-eol tests with READ6. Skipping test.\n"); + return; + } + for (i = 1; i <= 255; i++) { ret = read6(iscsic, tgt_lun, num_blocks - i, i * block_size, block_size, NULL);