Boost logo

Boost :

Subject: Re: [boost] Tests failing?
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2013-02-08 02:48:02


Marshall Clow <mclow.lists <at> gmail.com> writes:

> I appreciate the offer, but if you can point me at the docs describing
> how I should switch, I'll clean up my code.

I believe I've described it once somewhere. What you need is:

1. Replace

#include <boost/test/test_exec_monitor.hpp>

with

#define BOOST_TEST_MAIN
#include <boost/test/test_exec_monitor.hpp>

2. Replace

int test_main( int, char*[] )

with

BOOST_AUTO_TEST_CASE( test_main )

3. Delete return 0; statement at the end of test_main

4. Fix Jamfile by replacing

boost_test_exec_monitor
with
boost_unit_test_framework

Most of these can be dome by massive "Search/Replace" command.

Gennadiy


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk