Commit Graph

6 Commits

Author SHA1 Message Date
Ronnie Sahlberg
ed1c3e1129 TESTS: Fix all 0block tests
Remove the test for accessing 0blocks (transfer length==0) at the end of the device since they were invalid.

SBC says that :
   If the LBA plus the transfer length exceeds the capacity
   of the medium, then the device server shall terminate the
   command with CHECK CONDITION status with the sense key
   set to ILLEGAL REQUEST and the additional sense code
   set to LOGICAL BLOCK ADDRESS OUT OF RANGE.

This means that if TL==0  then a LBA that is the first LBA beyond the end of
device is actually valid.

Improve output for error conditions and harminize all tests
2012-09-10 19:08:57 -07:00
Ronnie Sahlberg
ecbff226b8 Improve tests for READ10/READ12/READ16 2012-06-24 07:55:49 +10:00
Ronnie Sahlberg
26873ea6ce TESTS: Improve tests for reading at LBA -1
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-06-03 10:05:42 +10:00
Ronnie Sahlberg
288fd5e9fe TEST-TOOL: Add a --info argument to print more detailed infor what a test does
Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
2012-06-03 09:08:12 +10:00
Ronnie Sahlberg
ac3da5df38 TESTS: fix bug in read 0 blocks at end of device.
rc16->returned_lba is the lba of the last block which can be accessed on the device, not the first block beyond the end of the device
2012-05-02 21:41:44 +10:00
Ronnie Sahlberg
a1c54d7265 TESTS: Add test to READ 12/16 when reading 0 blocks 2012-05-02 21:23:15 +10:00