TEST add simple UNMAP test

This commit is contained in:
Ronnie Sahlberg
2013-01-21 19:38:51 -08:00
parent d7be22fa2f
commit 2535eaed47
26 changed files with 161 additions and 104 deletions

View File

@@ -31,20 +31,12 @@ test_write16_flags(void)
int ret;
unsigned char *buf;
CHECK_FOR_DATALOSS;
CHECK_FOR_SBC;
logging(LOG_VERBOSE, "");
logging(LOG_VERBOSE, "Test WRITE16 flags");
if (!data_loss) {
CU_PASS("[SKIPPED] --dataloss flag is not set. Skipping test.");
return;
}
/* This test is only valid for SBC devices */
if (device_type != SCSI_INQUIRY_PERIPHERAL_DEVICE_TYPE_DIRECT_ACCESS) {
CU_PASS("[SKIPPED] LUN is not SBC device. Skipping test");
return;
}
buf = malloc(block_size);
logging(LOG_VERBOSE, "Test WRITE16 with DPO==1");
ret = write16(iscsic, tgt_lun, 0,