Skip to content

Commit

Permalink
Fault inject a few more locations.
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hidalgo <[email protected]>
  • Loading branch information
hidmic committed Oct 1, 2020
1 parent 8237291 commit 46c7b2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rmw_fastrtps_shared_cpp/src/rmw_wait.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#include "fastrtps/subscriber/Subscriber.h"

#include "rcutils/macros.h"

#include "rmw/error_handling.h"
#include "rmw/rmw.h"

Expand Down Expand Up @@ -99,6 +101,9 @@ __rmw_wait(
rmw_wait_set_t * wait_set,
const rmw_time_t * wait_timeout)
{
RCUTILS_CAN_RETURN_WITH_ERROR_OF(RMW_RET_INVALID_ARGUMENT);
RCUTILS_CAN_RETURN_WITH_ERROR_OF(RMW_RET_INCORRECT_RMW_IMPLEMENTATION);

RMW_CHECK_ARGUMENT_FOR_NULL(wait_set, RMW_RET_INVALID_ARGUMENT);
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
wait set handle,
Expand Down
3 changes: 3 additions & 0 deletions rmw_fastrtps_shared_cpp/src/rmw_wait_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include "rcutils/macros.h"

#include "rmw/allocators.h"
#include "rmw/error_handling.h"
#include "rmw/rmw.h"
Expand All @@ -26,6 +28,7 @@ namespace rmw_fastrtps_shared_cpp
rmw_wait_set_t *
__rmw_create_wait_set(const char * identifier, rmw_context_t * context, size_t max_conditions)
{
RCUTILS_CAN_RETURN_WITH_ERROR_OF(nullptr);
RCUTILS_CHECK_ARGUMENT_FOR_NULL(context, NULL);
RMW_CHECK_TYPE_IDENTIFIERS_MATCH(
init context,
Expand Down

0 comments on commit 46c7b2c

Please sign in to comment.