Skip to content

Commit

Permalink
Added test for READ_DEACTIVATE_VALUE
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Aug 29, 2023
1 parent 64f528c commit 9d7df03
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hardware_interface/test/test_resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,17 @@ TEST_F(ResourceManagerTestReadWriteError, handle_error_on_hardware_write)
std::bind(&TestableResourceManager::read, rm, _1, _2), test_constants::WRITE_FAIL_VALUE);
}

TEST_F(ResourceManagerTestReadWriteError, handle_deactivate_on_hardware_read)
{
setup_resource_manager_and_do_initial_checks();

using namespace std::placeholders;
// check read methods failures
check_read_or_write_deactivate(
std::bind(&TestableResourceManager::read, rm, _1, _2),
std::bind(&TestableResourceManager::write, rm, _1, _2), test_constants::READ_DEACTIVATE_VALUE);
}

TEST_F(ResourceManagerTestReadWriteError, handle_deactivate_on_hardware_write)
{
setup_resource_manager_and_do_initial_checks();
Expand Down

0 comments on commit 9d7df03

Please sign in to comment.