I've got a lot of Boost unit tests. I can't find the place where I should put my signal handler. There's no main()
function in the files in unit tests directory. It seems that main()
is hidden in some macros.
In unit_test.hpp
I see:
namespace boost { namespace unit_test {
int BOOST_TEST_DECL unit_test_main( init_unit_test_func init_func, int argc, char* argv[] );
}
But how can I implement my own main()
function, to be able to set a signal handler there?