ros / ros_comm

ROS communications-related packages, including core client libraries (roscpp, rospy, roslisp) and graph introspection tools (rostopic, rosnode, rosservice, rosparam).
http://wiki.ros.org/ros_comm
752 stars 911 forks source link

rostest silently ignores a segfault in a test program #2265

Open rhaschke opened 2 years ago

rhaschke commented 2 years ago

An attentive user noticed that a segfault in a test was not detected in our MoveIt CI. Instead, rostest returned 0 with the following output:

[ROSTEST]-----------------------------------------------------------------------

SUMMARY
 * RESULT: SUCCESS
 * TESTS: 0
 * ERRORS: 0
 * FAILURES: 0

However, running the test python program, results in error code 139 (segfault) and the corresponding stderr output: Segmentation fault (core dumped)

Looks like, rostest doesn't notice the segfault.