
7 Jan
2008
7 Jan
'08
4:26 p.m.
Benoit Sigoure <tsuna <at> lrde.epita.fr> writes:
On Dec 18, 2007, at 11:16 AM, Benoit Sigoure wrote: Hi guys, so I'm about to fix my BOOST_TEST macro that tests whether Boost.Tests can be used and linked against. Hubert Figuiere contributed the following fix. He suggested that I add: using boost::unit_test::test_suite; test_suite* init_unit_test_suite(int argc, char ** argv) { return NULL; } Before my `main' (which reads: int main() { BOOST_CHECK(2 == 2); return 0; })
I can't say I understand 100% what you are trying to do here, but using Testing tools outside of the UnitTest framework might not be a good idea. In 1.35 I've implemented a check against it and it may throw an exception. Gennadiy