TESTS: Update the protection tests
This commit is contained in:
@@ -33,22 +33,22 @@ test_read10_rdprotect(void)
|
||||
|
||||
/*
|
||||
* Try out different non-zero values for RDPROTECT.
|
||||
* They should all fail.
|
||||
*/
|
||||
logging(LOG_VERBOSE, LOG_BLANK_LINE);
|
||||
logging(LOG_VERBOSE, "Test READ10 with non-zero RDPROTECT");
|
||||
|
||||
CHECK_FOR_SBC;
|
||||
|
||||
if (inq->protect) {
|
||||
logging(LOG_VERBOSE, "No tests for devices that support protection information yet.");
|
||||
} else {
|
||||
logging(LOG_VERBOSE, "Device does not support protection information. All commands should fail.");
|
||||
if (!inq->protect || (rc16 != NULL && !rc16->prot_en)) {
|
||||
logging(LOG_VERBOSE, "Device does not support/use protection information. All commands should fail.");
|
||||
for (i = 1; i < 8; i++) {
|
||||
ret = read10_invalidfieldincdb(iscsic, tgt_lun, 0,
|
||||
block_size, block_size,
|
||||
i, 0, 0, 0, 0, NULL);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
logging(LOG_NORMAL, "No tests for devices that support protection information yet.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user