Boost logo

Boost :

From: SourceForge.net (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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1076691&group_id=7586

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 =
(INIT_DLL_TEST_SUITE)GetProcAddress(HM,"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*
InitDLLTestSuite(){
  return (new TestDLLSuite());
}

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1076691&group_id=7586

-------------------------------------------------------
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.
http://productguide.itmanagersjournal.com/
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


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