« Return to Thread: Boost.Tests: Unit test defines own main() function, why?

Re: Boost.Tests: Unit test defines own main() function, why?

by Benoit Sigoure :: Rate this Message:

Reply to Author | View in Thread

On Dec 18, 2007, at 10:50 AM, Jens Seidel wrote:

> Hi,
>
> I would like to know why Boost's unit test framework requires that the
> user defines init_unit_test_suite(int, char**) (or with char *[]
> argument???) instead of main().
>
> I recently had again some trouble because of it:
>  * It broke the general autoconf test in boost.m4 as the existance of
>    a Boost library can normally easily be tested by using boost code
>    in main() and not init_unit_test_suite(). (Will probably be fixed
>    soon in boost.m4.)


Hmm I was going to fix this today but now that you're raising this  
issue here, I'll wait to have a better insight of the situation  
before taking action.

--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

 « Return to Thread: Boost.Tests: Unit test defines own main() function, why?