From 18de10174bb6c44a1ddab1a8e9fc432c5cb41d1f Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 30 Oct 2017 16:57:58 -0700 Subject: [PATCH] test-tool/test_compareandwrite_simple(): Fix end-of-LUN test Make sure that the end-of-LUN test happens at the end of the LUN instead of at the start of the LUN. Signed-off-by: Bart Van Assche --- test-tool/test_compareandwrite_simple.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-tool/test_compareandwrite_simple.c b/test-tool/test_compareandwrite_simple.c index 46b0156..d3499d1 100644 --- a/test-tool/test_compareandwrite_simple.c +++ b/test-tool/test_compareandwrite_simple.c @@ -119,7 +119,7 @@ test_compareandwrite_simple(void) "BlockLimits.MaximumCompareAndWriteLength(%d). " "Command should fail with INVALID_FIELD_IN_CDB", i, maxbl); - COMPAREANDWRITE(sd, 0, + COMPAREANDWRITE(sd, num_blocks - i, scratch, 2 * i * block_size, block_size, 0, 0, 0, 0, EXPECT_INVALID_FIELD_IN_CDB);