TESTS: fix some bugs in the tests for INQUIRY

This commit is contained in:
Ronnie Sahlberg
2013-04-26 17:43:06 -07:00
parent e33194d94a
commit 78e02737c6
2 changed files with 15 additions and 4 deletions

View File

@@ -75,6 +75,7 @@ test_inquiry_alloc_length(void)
logging(LOG_NORMAL, "[SKIPPED] This device does not claim "
"SPC-3 or later");
CU_PASS("[SKIPPED] Not SPC-3 or later");
goto finished;
}
logging(LOG_VERBOSE, "Version is SPC-3 or later. Read INQUIRY data using 16-bit allocation length");
@@ -88,6 +89,7 @@ test_inquiry_alloc_length(void)
CU_ASSERT_EQUAL(ret, 0);
finished:
if (task != NULL) {
scsi_free_scsi_task(task);
task = NULL;