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

@@ -33,7 +33,7 @@ test_write16_0blocks(void)
logging(LOG_VERBOSE, LOG_BLANK_LINE);
logging(LOG_VERBOSE, "Test WRITE16 0-blocks at LBA==0");
ret = write16(sd->iscsi_ctx, sd->iscsi_lun, 0, 0, block_size,
ret = write16(sd, 0, 0, block_size,
0, 0, 0, 0, 0, NULL,
EXPECT_STATUS_GOOD);
if (ret == -2) {
@@ -44,21 +44,21 @@ test_write16_0blocks(void)
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test WRITE16 0-blocks one block past end-of-LUN");
ret = write16(sd->iscsi_ctx, sd->iscsi_lun, num_blocks + 1, 0,
ret = write16(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 WRITE16 0-blocks at LBA==2^63");
ret = write16(sd->iscsi_ctx, sd->iscsi_lun, 0x8000000000000000ULL, 0,
ret = write16(sd, 0x8000000000000000ULL, 0,
block_size, 0, 0, 0, 0, 0, NULL,
EXPECT_LBA_OOB);
CU_ASSERT_EQUAL(ret, 0);
logging(LOG_VERBOSE, "Test WRITE16 0-blocks at LBA==-1");
ret = write16(sd->iscsi_ctx, sd->iscsi_lun, -1, 0, block_size,
ret = write16(sd, -1, 0, block_size,
0, 0, 0, 0, 0, NULL,
EXPECT_LBA_OOB);
CU_ASSERT_EQUAL(ret, 0);