Tests: Create helper macros for the WriteVerify* commands
By creating a helper macros for WriteVerify we can save a lot of boilerplate code. Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -53,13 +53,8 @@ test_writeverify12_residuals(void)
|
||||
}
|
||||
|
||||
/* check if writeverify12 is supported */
|
||||
ret = writeverify12(sd, 0, 0,
|
||||
block_size, 0, 0, 0, 0, NULL,
|
||||
EXPECT_STATUS_GOOD);
|
||||
if (ret == -2) {
|
||||
CU_PASS("[SKIPPED] Target does not support WRITEVERIFY12. Skipping test");
|
||||
return;
|
||||
}
|
||||
WRITEVERIFY12(sd, 0, 0, block_size, 0, 0, 0, 0, NULL,
|
||||
EXPECT_STATUS_GOOD);
|
||||
|
||||
/* Try a writeverify12 of 1 block but xferlength == 0 */
|
||||
task = malloc(sizeof(struct scsi_task));
|
||||
|
||||
Reference in New Issue
Block a user