TESTS: Warn not fail if inquiry descriptors do not contain SPC* or SBC*

Only print a warning but do not fail if the standard inquire version
descriptors do not contain a SPC* or SBC* entry.
This commit is contained in:
Ronnie Sahlberg
2014-03-06 20:30:00 -08:00
parent b0dbecaff7
commit 270db13f7c

View File

@@ -65,9 +65,8 @@ test_inquiry_version_descriptors(void)
break; break;
} }
} }
CU_ASSERT_EQUAL(claimed_ok, 1);
if (claimed_ok == 0) { if (claimed_ok == 0) {
logging(LOG_VERBOSE, "[FAILURE] Block device " logging(LOG_NORMAL, "[WARNING] Block device "
"did not claim any version of SPC"); "did not claim any version of SPC");
} else { } else {
logging(LOG_VERBOSE, "[SUCCESS] Block device " logging(LOG_VERBOSE, "[SUCCESS] Block device "
@@ -92,9 +91,8 @@ test_inquiry_version_descriptors(void)
break; break;
} }
} }
CU_ASSERT_EQUAL(claimed_ok, 1);
if (claimed_ok == 0) { if (claimed_ok == 0) {
logging(LOG_VERBOSE, "[FAILURE] Block device " logging(LOG_NORMAL, "[WARNING] Block device "
"did not claim any version of SBC"); "did not claim any version of SBC");
} else { } else {
logging(LOG_VERBOSE, "[SUCCESS] Block device " logging(LOG_VERBOSE, "[SUCCESS] Block device "