TESTS: Update WRITE10/12 to allow it to fail with invalid operation code. Both these opcodes are Optional in all SBC standards.
This commit is contained in:
@@ -39,6 +39,11 @@ test_write12_0blocks(void)
|
||||
logging(LOG_VERBOSE, "Test WRITE12 0-blocks at LBA==0");
|
||||
ret = write12(iscsic, tgt_lun, 0, 0, block_size,
|
||||
0, 0, 0, 0, 0, NULL);
|
||||
if (ret == -2) {
|
||||
logging(LOG_NORMAL, "[SKIPPED] WRITE12 is not implemented.");
|
||||
CU_PASS("WRITE12 is not implemented.");
|
||||
return;
|
||||
}
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
|
||||
logging(LOG_VERBOSE, "Test WRITE12 0-blocks one block past end-of-LUN");
|
||||
|
||||
Reference in New Issue
Block a user