From 40740933feb7e06f2518af51dd259f487c52085f Mon Sep 17 00:00:00 2001 From: Jorge Perez Date: Mon, 31 Aug 2020 17:59:23 -0300 Subject: [PATCH] Add comment to fault injection tests Signed-off-by: Jorge Perez --- rcl/test/rcl/test_wait.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rcl/test/rcl/test_wait.cpp b/rcl/test/rcl/test_wait.cpp index 6cade53e2..0fcf6de13 100644 --- a/rcl/test/rcl/test_wait.cpp +++ b/rcl/test/rcl/test_wait.cpp @@ -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); @@ -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);