Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Test : Project setting in Visual 2010
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-04-04 11:41:47


>
>
>
> #define BOOST_TEST_MODULE MyTest
> #include <boost/test/unit_test.hpp>
>
> BOOST_AUTO_TEST_CASE(Test1)
> {
> BOOST_REQUIRE(false);
> }
>
>
> I created an other project (a console program). Its content is :
>
> #define BOOST_TEST_MAIN
> #include <boost/test/unit_test.hpp>
>
>
Can you remove the #define BOOST_TEST_MODULE MeTest. You don't need that.
Just do:

#include <boost/test/unit_test.hpp>

BOOST_AUTO_TEST_CASE( small_test )
{
   // ...
}

Let me know if you have more questions.

Christian



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net