Repository navigation
check rmw id using RCL_ASSERT_RMW_ID_MATCHES - #51
Conversation
|
Use assert in the name. |
|
I've got this linter failure too: |
87c8a11 to
359acae
Compare
|
I renamed to Here is CI (just Linux to start): |
|
I think the 3 failures (technically 4, but two of the entries are the same failure) on the Linux CI are flakey. OS X passes green and Windows has failures, but they don't seem related:
I'd appreciate final reviews so I can merge and @dhood can make use of them. |
|
does that talker_listener test usually fail on windows? I don't think I've seen it failing before |
|
@dhood good point, I'll dig into it. Based on my changes I expected lots of new things to fail or nothing new to fail, but I'll look into the talker-listener example to see what's up. |
|
All of the test failures here: http://ci.ros2.org/job/ci_windows/1275/testReport/ are connext dynamic and is some SEH error issue. I think those have been present previously. This test is opensplice: I'll look into why that one is failing to see if it is related to mine. |
|
I believe http://ci.ros2.org/job/ci_windows/1275/testReport/projectrootC_.J.workspace.ci_windows.ws.src.ros2.system_tests/test_rclcpp/gtest_executor__rmw_opensplice_cpp/ is a failing test outside of my changes. Here it is on an unrelated ci build: http://ci.ros2.org/job/ci_windows/1274/testReport/projectrootC_.J.workspace.ci_windows.ws.src.ros2.system_tests/test_rclcpp/gtest_executor__rmw_opensplice_cpp/ I've got it reproduced in VS, but I need to rebuild Debug to figure out what's going on. Either way I think it doesn't apply to this issue. |
|
Still looking for up/down votes on merging this as-is. |
|
the talker-listener one is new, but I don't think it was caused by this: it was in the most-recent nightly: http://ci.ros2.org/view/nightly/job/nightly_win_rel/62/#showFailuresLink but before that nightly I haven't seen it before |
|
If it's in the nightly then that's good evidence that this is not a regression of this pr. |
|
yes I agree |
Fixes to support proper lifecycle of the rmw objects and other tear down issues
With this pr, if you set
RCL_CHECK_RMW_ID_MATCHES_OR_DIEto an rmw implementation likermw_connext_cpp, and thelibrclthat your program is using returns a different answer it will exit with return code 1 before running the main. If the environment variable is not set, then nothing happens.Taking an
rcltest as an example:This would be used with @dhood's pr, see: ros2/examples#106 (comment)