c++ - How to cancel "fatal error" detection in BOOST TEST -
i error: unknown location(0): fatal error in "suite_1_test_1": child has exited; pid: 5817; uid: 0; exit value: 255
inside suite_1_test_1 run program a execvp() (after fork()), may exit error code not 0. error code indicates happened program a.
the problem that, if fatal error, can't handle exit() value, , boost test gets out immediately.
can somehow turn off moment?
thanks
well, possible so:
boost::unit_test case fails because child process exits nonzero
just #define boost_test_ignore_non_zero_child_code before #define boost_test_module aot_test_module in main()
when using shared libraries, run command line option --catch_system_errors=no or export boost_test_catch_system_errors=“no”.
Comments
Post a Comment