Skip to content

Commit

Permalink
TEMP: Workaround for unittests failing during shutdown
Browse files Browse the repository at this point in the history
Using quick_exit instead of return/exit avoids calling all cleanup functions,
which fail due to a bug in rmw_fastrtps_cpp.
  • Loading branch information
rhaschke committed May 29, 2024
1 parent bb047c8 commit edf2605
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion core/test/test_move_relative.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,5 +133,6 @@ int main(int argc, char** argv) {
testing::InitGoogleTest(&argc, argv);
rclcpp::init(argc, argv);

return RUN_ALL_TESTS();
// Using quick_exit to avoid calling cleanup functions, which cause a segfault in rmw
quick_exit(RUN_ALL_TESTS());
}
3 changes: 2 additions & 1 deletion visualization/motion_planning_tasks/test/test_task_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,6 @@ int main(int argc, char** argv) {
auto test_result = RUN_ALL_TESTS();
app.exit(test_result);
});
return app.exec();
// Using quick_exit to avoid calling cleanup functions, which cause a segfault in rmw
quick_exit(app.exec());
}

0 comments on commit edf2605

Please sign in to comment.