Skip to content

Commit

Permalink
Make rmw_destroy_wait_set return RMW_RET_INVALID_ARGUMENT (#152)
Browse files Browse the repository at this point in the history
Signed-off-by: Christophe Bedard <[email protected]>
  • Loading branch information
christophebedard authored Jun 13, 2024
1 parent 2cb888d commit 1bb128b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rmw_connextdds_common/src/common/rmw_waitset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ rmw_api_connextdds_create_wait_set(
rmw_ret_t
rmw_api_connextdds_destroy_wait_set(rmw_wait_set_t * rmw_ws)
{
// TODO(asorbini): Return RMW_RET_INVALID_ARGUMENT. We return RMW_RET_ERROR
// because that's what's expected by test_rmw_implementation
RMW_CHECK_ARGUMENT_FOR_NULL(rmw_ws, RMW_RET_ERROR);
RMW_CHECK_ARGUMENT_FOR_NULL(rmw_ws, RMW_RET_INVALID_ARGUMENT);
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
rmw_ws,
rmw_ws->implementation_identifier,
Expand Down

0 comments on commit 1bb128b

Please sign in to comment.