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:
@@ -46,7 +46,7 @@ test_writeverify12_wrprotect(void)
|
||||
logging(LOG_VERBOSE, "Device does not support/use protection information. All commands should fail.");
|
||||
for (i = 1; i < 8; i++) {
|
||||
WRITEVERIFY12(sd, 0, block_size, block_size,
|
||||
i, 0, 0, 0, scratch,
|
||||
i, 0, 1, 0, scratch,
|
||||
EXPECT_INVALID_FIELD_IN_CDB);
|
||||
}
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user