Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2004-12-01 07:10:33

Bugs item #1076691, was opened at 2004-12-01 14:10
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: test
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Talash (talash)
Assigned to: Beman Dawes (beman_dawes)
Summary: Don't work multilevel hierarchy of test suites in dll.

Initial Comment:

I create main testsuit in .exe file. Other testsuits I
placed into dll's. My test system doesn't work because
static data different for objects test_suite that
creating in exe and in dll.

in exe:
test_suite* init_unit_test_suite( int argc, char *
argv[] ) {
  std::auto_ptr<test_suite> test( BOOST_TEST_SUITE(
"ProjectV" ) );
  HMODULE HM = LoadLibrary("BugBoost");
  const INIT_DLL_TEST_SUITE InitDLLTestSuite =
  test->add( InitDLLTestSuite() );
  return test.release();

in dll:
struct TestDLLSuite : public UTSuite{
  TestXMLSuite() : UTSuite("TestDLL"){
    boost::shared_ptr<TestXML> instance( new TestDLL() );

extern "C" __declspec(dllexport) test_suite*
  return (new TestDLLSuite());


You can respond by visiting:

SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at