Boost logo

Boost :

From: Johnson, Dean (djohnson2_at_[hidden])
Date: 2003-08-19 17:07:35


I am using the unit test framework on Solaris 5.8 using workshop 6

I can't get BOOST_MESSAGE to print anything.

Here is the output for program:
*******************************
Running 1 test case...
 
*** No errors detected
*******************************

I was expecting "entering registryTest()" to be in there somewhere but it is
not.

What am I doing wrong?

here is the code:

void registryTest()
{
        BOOST_MESSAGE("entering registryTest()");
        std::ostringstream filename_strm;
        filename_strm << "/var/tmp/testRegistry_" << getpid() << ".xml";

        const char* document = filename_strm.str().c_str();
        std::ofstream xmlTestFile(document);

        BOOST_CHECK(xmlTestFile);
        
        for (int index = 0;testXMLFileData[index]!=NULL;index++)
        {
                xmlTestFile << testXMLFileData[index] << std::endl;
        }

        Registry::loadRegistry(document);

        const char* xpath_int = "/config/TestInt";
        int int_value;

        BOOST_CHECK(Registry::getValue(xpath_int,int_value));
        BOOST_CHECK(int_value == 12345);

        const char* xpath_double = "/config/TestDouble";
        double double_value;

        BOOST_CHECK(Registry::getValue(xpath_double,double_value));
        BOOST_CHECK(double_value == 987654.321);

        const char* xpath_string = "/config/TestString";
        std::string string_value;

        BOOST_CHECK(Registry::getValue(xpath_string,string_value));
        BOOST_CHECK(string_value == "This is a test string");

        BOOST_CHECK(unlink(document) == 0);
}

test_suite* init_unit_test_suite(int argc, char* argv[])
{
        test_suite* test = BOOST_TEST_SUITE( "Registry Test");

        test->add(BOOST_TEST_CASE(&registryTest));
        return test;
}

____________________________________________________________________

IMPORTANT NOTICES:
          This message is intended only for the addressee. Please notify the
sender by e-mail if you are not the intended recipient. If you are not the
intended recipient, you may not copy, disclose, or distribute this message
or its contents to any other person and any such actions may be unlawful.
 
         Banc of America Securities LLC("BAS") does not accept time
sensitive, action-oriented messages or transaction orders, including orders
to purchase or sell securities, via e-mail.

         BAS reserves the right to monitor and review the content of all
messages sent to or from this e-mail address. Messages sent to or from this
e-mail address may be stored on the BAS e-mail system.
__________________________________________________________________


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk