test tool: Set BYTCHK=1 if EDTL != 0
From SBC-4: BYTCHK = 0 means that the Data-Out buffer contents must not be used. BYTCHK = 1 means that the Data-Out buffer must be compared against the data on the storage medium. Hence set BYTCHK to 1 if EDTL != 0. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
This commit is contained in:
@@ -65,11 +65,11 @@ test_writeverify16_dpo(void)
|
||||
memset(scratch, 0xa6, block_size);
|
||||
if (dpofua) {
|
||||
WRITEVERIFY16(sd, 0, block_size,
|
||||
block_size, 0, 1, 0, 0, scratch,
|
||||
block_size, 0, 1, 1, 0, scratch,
|
||||
EXPECT_STATUS_GOOD);
|
||||
} else {
|
||||
WRITEVERIFY16(sd, 0, block_size,
|
||||
block_size, 0, 1, 0, 0, scratch,
|
||||
block_size, 0, 1, 1, 0, scratch,
|
||||
EXPECT_INVALID_FIELD_IN_CDB);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user