TESTS: change the function signatures for the helpers

Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Ronnie Sahlberg
2014-09-18 18:19:04 -07:00
parent 9b768f7de9
commit 072291c852
169 changed files with 1071 additions and 1030 deletions

View File

@@ -37,7 +37,7 @@ test_write12_0blocks(void)
logging(LOG_VERBOSE, LOG_BLANK_LINE);
logging(LOG_VERBOSE, "Test WRITE12 0-blocks at LBA==0");
ret = write12(sd->iscsi_ctx, sd->iscsi_lun, 0, 0, block_size,
ret = write12(sd, 0, 0, block_size,
0, 0, 0, 0, 0, NULL,
EXPECT_STATUS_GOOD);
if (ret == -2) {
@@ -48,21 +48,21 @@ test_write12_0blocks(void)
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test WRITE12 0-blocks one block past end-of-LUN");
ret = write12(sd->iscsi_ctx, sd->iscsi_lun, num_blocks + 1, 0,
ret = write12(sd, num_blocks + 1, 0,
block_size, 0, 0, 0, 0, 0, NULL,
EXPECT_LBA_OOB);
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test WRITE12 0-blocks at LBA==2^31");
ret = write12(sd->iscsi_ctx, sd->iscsi_lun, 0x80000000, 0,
ret = write12(sd, 0x80000000, 0,
block_size, 0, 0, 0, 0, 0, NULL,
EXPECT_LBA_OOB);
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test WRITE12 0-blocks at LBA==-1");
ret = write12(sd->iscsi_ctx, sd->iscsi_lun, -1, 0, block_size,
ret = write12(sd, -1, 0, block_size,
0, 0, 0, 0, 0, NULL,
EXPECT_LBA_OOB);
CU_ASSERT_EQUAL(ret, 0);