Sorry for replying old topic.
I’m trying to fix remaining sanitizer issues.
I first tied rcl and found almost of them are about test code but a few are about rcl code.
I sent PR about these(I related them with [rcl isses 469 “Memory leak in test_subscription__rmw_fastrtps_cpp”](Memory leak in test_subscription__rmw_fastrtps_cpp)).
- Fix alloc-dealloc-mismatch(new->free) in test_info_by_topic (#469) by y-okumura-isp · Pull Request #569 · ros2/rcl · GitHub
- Fix test_publisher memory leaks reported by asan by y-okumura-isp · Pull Request #567 · ros2/rcl · GitHub
- Rcl issues 469 test arguments by y-okumura-isp · Pull Request #564 · ros2/rcl · GitHub
- Fix memory leak in test_subscription_nominal (#469) by y-okumura-isp · Pull Request #562 · ros2/rcl · GitHub
Also I found rcl line-coverage by UT is 75.2%.
Some functions are not tested in graph.c, init_options.c, node_options.c, publisher.c, subscription.c, timer.c.
So I plan to write more tests and send PR.
The same can be said about rmw.
Rmw passes ASan test, but test coverage is 58.6%(lines), 43.3%(functions).
I plan to address them too.
If there is a goal for test coverage or quality, please tell me.
Thank you.