ros_comm icon indicating copy to clipboard operation
ros_comm copied to clipboard

rostest silently ignores a segfault in a test program

Open rhaschke opened this issue 2 years ago • 0 comments

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.

rhaschke avatar Aug 16 '22 13:08 rhaschke