TESTS: WRITE16 is optional so update the tests to allow WRITE16 to be missing and just make the test be [SKIPPED]
This commit is contained in:
@@ -35,6 +35,11 @@ test_write16_0blocks(void)
|
||||
logging(LOG_VERBOSE, "Test WRITE16 0-blocks at LBA==0");
|
||||
ret = write16(iscsic, tgt_lun, 0, 0, block_size,
|
||||
0, 0, 0, 0, 0, NULL);
|
||||
if (ret == -2) {
|
||||
logging(LOG_NORMAL, "[SKIPPED] WRITE16 is not implemented.");
|
||||
CU_PASS("WRITE16 is not implemented.");
|
||||
return;
|
||||
}
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
|
||||
logging(LOG_VERBOSE, "Test WRITE16 0-blocks one block past end-of-LUN");
|
||||
|
||||
Reference in New Issue
Block a user