mirror of
https://github.com/akuker/RASCSI.git
synced 2024-06-02 11:41:34 +00:00
Test support of page 1
Signed-off-by: Klaus Kämpf <kkaempf@gmail.com>
This commit is contained in:
parent
91dbbfb103
commit
db7f215b38
|
@ -46,6 +46,11 @@ TEST(ScsiCommandUtilTest, ModeSelect6)
|
||||||
Property(&scsi_exception::get_asc, asc::invalid_field_in_parameter_list))))
|
Property(&scsi_exception::get_asc, asc::invalid_field_in_parameter_list))))
|
||||||
<< "Unsupported page 0 was not rejected";
|
<< "Unsupported page 0 was not rejected";
|
||||||
|
|
||||||
|
// Page 1
|
||||||
|
buf[12] = 0x01;
|
||||||
|
EXPECT_NO_THROW(ModeSelect(scsi_command::eCmdModeSelect6, cdb, buf, LENGTH, 512))
|
||||||
|
<< "Page 1 is supported";
|
||||||
|
|
||||||
// Page 3 (Format Device Page)
|
// Page 3 (Format Device Page)
|
||||||
buf[12] = 0x03;
|
buf[12] = 0x03;
|
||||||
EXPECT_THAT([&] { ModeSelect(scsi_command::eCmdModeSelect6, cdb, buf, LENGTH, 512); },
|
EXPECT_THAT([&] { ModeSelect(scsi_command::eCmdModeSelect6, cdb, buf, LENGTH, 512); },
|
||||||
|
|
Loading…
Reference in New Issue
Block a user