Tests: add helpers for read*
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -71,11 +71,9 @@ test_modesense6_control_d_sense(void)
|
||||
}
|
||||
logging(LOG_VERBOSE, "Send a READ16 that will fail so we can check "
|
||||
"the type of sense data returned");
|
||||
ret = read16(sd, &r16_task, 0xffffffffffffffffLL,
|
||||
block_size, block_size, 0,
|
||||
0, 0, 0, 0, NULL,
|
||||
EXPECT_LBA_OOB);
|
||||
CU_ASSERT_EQUAL(ret, 0);
|
||||
READ16(sd, &r16_task, 0xffffffffffffffffLL, block_size, block_size, 0,
|
||||
0, 0, 0, 0, NULL,
|
||||
EXPECT_LBA_OOB);
|
||||
|
||||
if (page->control.d_sense) {
|
||||
logging(LOG_VERBOSE, "D_SENSE is set, verify that sense format "
|
||||
|
||||
Reference in New Issue
Block a user