Hi,
I am using the UTF in my code. Below is the key component of my code that I have been using on Mac for a few years with boost installed from macports.
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE MAST_TESTS
#include <boost/test/unit_test.hpp>
// C++ includes
#include <memory>
struct GlobalTestFixture {
GlobalTestFixture() {
/* my code here */
}
~GlobalTestFixture() {
}
};
BOOST_GLOBAL_FIXTURE( GlobalTestFixture );
A few days ago I started using this code on Ubuntu and kept getting segmentation faults with random values being returned for boost::unit_test::framework::master_test_suite().argc
I managed to get rid of this problem by changing the included header to
#include <boost/test/included/unit_test.hpp>
Is there a test I can include in my code to automatically switch from one include to the other?
I will appreciate some guidance.
Regards,
Manav