TESTS: update writesame tests to new API

Signed-off-by: Ronnie Sahlberg <sahlberg@localhost>
This commit is contained in:
Ronnie Sahlberg
2014-09-17 10:07:10 -07:00
committed by Ronnie Sahlberg
parent d3f98dfdd5
commit 8585e4509b
20 changed files with 179 additions and 653 deletions

View File

@@ -42,7 +42,8 @@ test_writesame16_unmap_unaligned(void)
for (i = 1; i < lbppb; i++) {
logging(LOG_VERBOSE, "Unmap %d blocks using WRITESAME16 at LBA:%d", lbppb - i, i);
ret = writesame16(iscsic, tgt_lun, i, 0, lbppb - i,
0, 1, 0, 0, NULL);
0, 1, 0, 0, NULL,
EXPECT_STATUS_GOOD);
if (ret == -2) {
logging(LOG_NORMAL, "[SKIPPED] WRITESAME16 is not implemented.");
CU_PASS("[SKIPPED] Target does not support WRITESAME16. Skipping test");