TESTS: Additional checks for missing opcodes and skipping tests

This commit is contained in:
Ronnie Sahlberg
2012-08-31 11:42:44 -07:00
parent f3aacb3a5d
commit 4df1525415
13 changed files with 86 additions and 4 deletions

View File

@@ -104,6 +104,14 @@ int T0191_writesame16_unmap_unaligned(const char *initiator, const char *url, in
ret = -1;
goto finished;
}
if (task->status == SCSI_STATUS_CHECK_CONDITION
&& task->sense.key == SCSI_SENSE_ILLEGAL_REQUEST
&& task->sense.ascq == SCSI_SENSE_ASCQ_INVALID_OPERATION_CODE) {
printf("[SKIPPED]\n");
printf("Opcode is not implemented on target\n");
scsi_free_scsi_task(task);
goto finished;
}
if (task->status == SCSI_STATUS_GOOD) {
printf("[FAILED]\n");
printf("WRITESAME16 command to unmap a fractional physical block should fail\n");