Boost logo

Boost Users :

From: Brandon Olivares (olivare1738_at_[hidden])
Date: 2007-12-19 12:49:04


 

Hi,

 

The documentation says I can use syntax like:

 

BOOST_AUTO_TEST_SUITE( test_suite_name );

 

// Test cases here

 

BOOST_AUTO_TEST_SUITE_END();

 

I'm getting no errors, but I find that even when using this, testing errors
are reported as being in the master test suite.

 

Sample code:

 

BOOST_AUTO_TEST_SUITE( StringUtility );

 

BOOST_AUTO_TEST_CASE( getWords )

{

// This is only to test functionality of the test library

        BOOST_CHECK_EQUAL(1, 2);

}

 

BOOST_AUTO_TEST_SUITE_END();

 

Sample output (note that the other test case is from the main file):

 

Running 2 test cases...

./StringUtilityTest.cc(7): error in "getWords": check 1 == 2 failed [1 != 2]

 

*** 1 failure detected in test suite "War"

 

I'd appreciate any help figuring this out.

 

Thanks,

Brandon




image001.gif

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