colcon test-run_test.py:return code -11

asked 2019-07-01 22:33:03 -0500

RachelRen gravatar image

updated 2019-07-01 22:38:49 -0500

main function:

int main(int argc, char * argv[])
{
  testing::InitGoogleTest(&argc, argv);
  rclcpp::init(argc, argv);
  int ret =  RUN_ALL_TESTS();
  std::cout << ret << std::endl;
  return 0;
}

when I use colcon test to run test, an error occurred:

1: [       OK ] UnitTestCheckPipeline.testPipeline (592 ms)
1: [----------] 1 test from UnitTestCheckPipeline (592 ms total)
1:
1: [----------] Global test environment tear-down
1: [==========] 1 test from 1 test case ran. (592 ms total)
1: [  PASSED  ] 1 test.
1: 0
1: -- run_test.py: return code -11
1: -- run_test.py: inject classname prefix into gtest result file '/home/intel/ros2_overlay_ws/build/dynamic_vino_sample/test_results/dynamic_vino_sample/unittest_createPipelineCheck.gtest.xml'
1: -- run_test.py: verify result file '/home/intel/ros2_overlay_ws/build/dynamic_vino_sample/test_results/dynamic_vino_sample/unittest_createPipelineCheck.gtest.xml'
1/1 Test #1: unittest_createPipelineCheck .....***Failed    1.23 sec

0% tests passed, 1 tests failed out of 1

What puzzles me is that the result of test passed, and I also checked the return value of RUN_ALL_TESTS is 0.

but, run_test.py failed, What does this return code -11 represent?

Thank you!

edit retag flag offensive close merge delete

Comments

1

-11 on Linux is a SEGFAULT (ie: a crash).

I would expect the output I see in the summary (ie: 1 out of 1 tests failed). Would you not?

gvdhoorn gravatar imagegvdhoorn ( 2019-07-01 23:07:23 -0500 )edit