Re: [Boost-users] A request for help using the Boost Unit Test Library
------------------------------
Message: 4 Date: Thu, 28 Feb 2008 16:56:15 +0000 (UTC) From: Gennadiy Rozental
Subject: Re: [Boost-users] A request for help using the Boost Unit Test Library To: boost-users@lists.boost.org Message-ID: Content-Type: text/plain; charset=us-ascii Tim Allison
writes: // each test module could contain no more then one ..... function defined // alternatively you could define init function yourself #define BOOST_TEST_MAIN #include
//___________________________________________________________________//
// most frequently you implement test cases as a .... utomatic registration BOOST_AUTO_TEST_CASE( test1 )
You mean to say error is on above line, right?
The error messages are: FuserTests.cc:9: error: expected constructor, destructor, or type conversion before '(' token FuserTests.cc:18: error: expected constructor, destructor, or type conversion before '(' token
What compiler are u using? Can you post compilation command? These errors may only mean that you doing something funny during compilation and compiler do not see BOOST_AUTO_TEST_CASE macro.
I am using Gnu compiler 4.1.3-29. I have reduced the number of switches, so that the actual line used to build is: g++ -g -I../lib -I/usr/X11R6/include -I../../../source/ecs/shared -DOS_IS_LINUX -c FuserTests.cc Tim Allison
Gennadiy
Tim Allison
What compiler are u using? Can you post compilation command? These errors may only mean that you doing something funny during compilation and compiler do not see BOOST_AUTO_TEST_CASE macro.
I am using Gnu compiler 4.1.3-29. I have reduced the number of switches, so that the actual line used to build is: g++ -g -I../lib -I/usr/X11R6/include -I../../../source/ecs/shared -DOS_IS_LINUX -c FuserTests.cc
Where is boost include? Can you generate preprocessed code? Do you see boost test code? what do u see in place of BOOST_AUTO_TEST_CASE( test1 )? Gennadiy
participants (2)
-
Gennadiy Rozental
-
Tim Allison