Skip to content

Commit

Permalink
Update unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
uweseimet committed Jan 23, 2024
1 parent 1049d74 commit 1948101
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cpp/test/mode_page_device_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// SCSI target emulator and SCSI tools for the Raspberry Pi
//
// Copyright (C) 2022-2023 Uwe Seimet
// Copyright (C) 2022-2024 Uwe Seimet
//
//---------------------------------------------------------------------------

Expand Down Expand Up @@ -107,11 +107,11 @@ TEST(ModePageDeviceTest, ModeSelect)

EXPECT_THAT([&] {device.ModeSelect(scsi_command::cmd_mode_select6, cmd, buf, 0);}, Throws<scsi_exception>(AllOf(
Property(&scsi_exception::get_sense_key, sense_key::illegal_request),
Property(&scsi_exception::get_asc, asc::invalid_field_in_cdb))))
Property(&scsi_exception::get_asc, asc::invalid_field_in_parameter_list))))
<< "Unexpected MODE SELECT(6) default implementation";
EXPECT_THAT([&] {device.ModeSelect(scsi_command::cmd_mode_select10, cmd, buf, 0);}, Throws<scsi_exception>(AllOf(
Property(&scsi_exception::get_sense_key, sense_key::illegal_request),
Property(&scsi_exception::get_asc, asc::invalid_field_in_cdb))))
Property(&scsi_exception::get_asc, asc::invalid_field_in_parameter_list))))
<< "Unexpected MODE SELECT(10) default implementation";
}

Expand Down

0 comments on commit 1948101

Please sign in to comment.