
8 Feb
2013
8 Feb
'13
5:47 p.m.
Marshall Clow <mclow.lists <at> gmail.com> writes:
1. Replace
#include <boost/test/test_exec_monitor.hpp>
with
#define BOOST_TEST_MAIN #include <boost/test/test_exec_monitor.hpp>
Are you sure?
Oops. Sorry. Typo. It should be #include <boost/test/unit_test.hpp>
I tried that, and it didn't work at all.
I looked at the documentation, and it showed:
#define BOOST_TEST_MODULE MyTest #define BOOST_TEST_MAIN #include <boost/test/unit_test.hpp>
Is that correct?
You do not need both BOOST_TEST_MAIN and BOOST_TEST_MODULE. Keep later , since it allows to name your test module's master test suite, but using just BOOST_TEST_MAIN allows to build and run as well. Gennadiy