From 19481012539fb30c919b74da40c47abc56779660 Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Tue, 23 Jan 2024 22:22:28 +0100 Subject: [PATCH] Update unit test --- cpp/test/mode_page_device_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cpp/test/mode_page_device_test.cpp b/cpp/test/mode_page_device_test.cpp index b62f9598..4baf251a 100644 --- a/cpp/test/mode_page_device_test.cpp +++ b/cpp/test/mode_page_device_test.cpp @@ -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 // //--------------------------------------------------------------------------- @@ -107,11 +107,11 @@ TEST(ModePageDeviceTest, ModeSelect) EXPECT_THAT([&] {device.ModeSelect(scsi_command::cmd_mode_select6, cmd, buf, 0);}, Throws(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(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"; }