Add fault-injection unit tests (coverage part 2/3) (#766)

* Fault injection tests for rcl_yaml

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* PR Feedback

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* Pause fault injection

Signed-off-by: Stephen Brawner <brawner@gmail.com>

* variant_copy

Signed-off-by: Stephen Brawner <brawner@gmail.com>
This commit is contained in:
brawner 2020-09-02 14:35:25 -07:00 committed by Alejandro Hernández Cordero
parent 79e2e044d3
commit 08bbdde860
4 changed files with 133 additions and 35 deletions

View file

@ -72,6 +72,7 @@ if(BUILD_TESTING)
"rcutils"
"osrf_testing_tools_cpp"
)
target_compile_definitions(test_namespace PUBLIC RCUTILS_ENABLE_FAULT_INJECTION)
target_link_libraries(test_namespace ${PROJECT_NAME})
endif()
@ -119,6 +120,7 @@ if(BUILD_TESTING)
"osrf_testing_tools_cpp"
)
target_link_libraries(test_parser ${PROJECT_NAME})
target_compile_definitions(test_parser PUBLIC RCUTILS_ENABLE_FAULT_INJECTION)
endif()
add_performance_test(benchmark_parse_yaml test/benchmark/benchmark_parse_yaml.cpp