Merge pull request #163 from rodrigc/fix1

Skip unsupported tests instead of failing
This commit is contained in:
Ronnie Sahlberg
2015-05-07 06:32:14 -07:00

View File

@@ -88,7 +88,13 @@ test_report_supported_opcodes_one_command(void)
65535,
EXPECT_STATUS_GOOD);
}
CU_ASSERT_EQUAL(ret, 0);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] SCSI_REPORT_SUPPORTING_OPCODE is not "
"implemented.");
CU_PASS("SCSI_REPORT_SUPPORTING_OPCODE is not implemented.");
} else {
CU_ASSERT_EQUAL(ret, 0);
}
if (rsoc->descriptors[i].servactv) {
logging(LOG_VERBOSE, "This opcode has service actions. "
@@ -112,7 +118,13 @@ test_report_supported_opcodes_one_command(void)
65535,
EXPECT_INVALID_FIELD_IN_CDB);
}
CU_ASSERT_EQUAL(ret, 0);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] SCSI_REPORT_SUPPORTING_SERVICEACTION is not "
"implemented.");
CU_PASS("SCSI_REPORT_SUPPORTING_SERVICEACTION is not implemented.");
} else {
CU_ASSERT_EQUAL(ret, 0);
}
}