TESTS: keep the unmarshalled std inq structure around

This commit is contained in:
Ronnie Sahlberg
2013-05-11 17:07:59 -07:00
parent 772d220217
commit 5135836ee5
40 changed files with 186 additions and 222 deletions

View File

@@ -43,12 +43,12 @@ int T0103_read10_rdprotect(const char *initiator, const char *url)
return -1;
}
if (device_type != SCSI_INQUIRY_PERIPHERAL_DEVICE_TYPE_DIRECT_ACCESS) {
printf("LUN is not SBC device. Skipping test\n");
if (inq->device_type != SCSI_INQUIRY_PERIPHERAL_DEVICE_TYPE_DIRECT_ACCESS) {
logging(LOG_VERBOSE, "[SKIPPED] Not SBC device."
" Skipping test");
return -2;
}
ret = 0;
/* Try out Different non-zero values for RDPROTECT. They should all fail */