Skip to content

Commit

Permalink
Add comment to fault injection tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Perez <jjperez@ekumenlabs.com>
  • Loading branch information
Blast545 committed Aug 31, 2020
1 parent bb3cdca commit 4074093
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rcl/test/rcl/test_wait.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ TEST_F(CLASSNAME(WaitSetTestFixture, RMW_IMPLEMENTATION), wait_set_test_maybe_in

RCUTILS_FAULT_INJECTION_TEST(
{
// Test init in the case where guard_conditions_size + timers_size = 0
// (used for guard condition size)
ret = rcl_wait_set_init(&wait_set, 1, 0, 0, 1, 1, 0, context_ptr, alloc);
if (RCL_RET_OK == ret) {
ret = rcl_wait_set_fini(&wait_set);
Expand All @@ -760,6 +762,8 @@ TEST_F(CLASSNAME(WaitSetTestFixture, RMW_IMPLEMENTATION), wait_set_test_maybe_in

RCUTILS_FAULT_INJECTION_TEST(
{
// Test init wait_set using at least one of each of the possible elements that receives
// (subs, guard conditions, timers, clients, services, events)
ret = rcl_wait_set_init(&wait_set, 1, 1, 1, 1, 1, 1, context_ptr, alloc);
if (RCL_RET_OK == ret) {
ret = rcl_wait_set_fini(&wait_set);
Expand Down

0 comments on commit 4074093

Please sign in to comment.