Subject: [Boost-users] Using boost unit test with QtCreator
From: Wilhelm (wilhelm.meier_at_[hidden])
Date: 2011-08-24 06:33:38


Hi all,

if one uses the boost unit test macros (see below), qtcreator marks the
BOOST_CHECK(...) macros as syntax error (expected ;):

#include <boost/test/unit_test.hpp>

#include "person.h"

BOOST_AUTO_TEST_CASE(Person1)
{
    Person p("Hugo", "Tester");
    BOOST_CHECK(p.firstname() == "Hugo");
    BOOST_CHECK(p.lastname() == "Tester");
}

Does anybody know how to avoid this (yes, I can use the Qt unit testing
framework, but thats not a solution in this special case)?

-- 
Wilhelm