TESTS: update inquiry to new api
Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
This commit is contained in:
committed by
Ronnie Sahlberg
parent
398f03205d
commit
9be6ddaf09
@@ -34,9 +34,9 @@ test_inquiry_supported_vpd(void)
|
||||
logging(LOG_VERBOSE, "Test INQUIRY supported VPD pages");
|
||||
|
||||
logging(LOG_VERBOSE, "Verify we can read the SUPPORTED VPD page");
|
||||
ret = inquiry(iscsic, tgt_lun,
|
||||
1, SCSI_INQUIRY_PAGECODE_SUPPORTED_VPD_PAGES,
|
||||
255, &task);
|
||||
ret = inquiry(iscsic, &task, tgt_lun,
|
||||
1, SCSI_INQUIRY_PAGECODE_SUPPORTED_VPD_PAGES, 255,
|
||||
EXPECT_STATUS_GOOD);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
|
||||
logging(LOG_VERBOSE, "Verify we got at least 4 bytes of data");
|
||||
@@ -56,9 +56,8 @@ test_inquiry_supported_vpd(void)
|
||||
logging(LOG_VERBOSE, "Verify we can read page 0x%02x",
|
||||
sup_inq->pages[i]);
|
||||
|
||||
ret = inquiry(iscsic, tgt_lun,
|
||||
1, sup_inq->pages[i],
|
||||
255, NULL);
|
||||
ret = inquiry(iscsic, NULL, tgt_lun, 1, sup_inq->pages[i], 255,
|
||||
EXPECT_STATUS_GOOD);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user