Boost logo

Boost :

From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2008-01-07 11:26:46

Benoit Sigoure <tsuna <at>> 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at