[Boost-bugs] [ boost-Support Requests-1670855 ] [Test Library] How to init/free a singleton

Support Requests item #1670855, was opened at 2007-02-28 14:59 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1670855&group_id=7586 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Emmanuel Verguet (everguet) Assigned to: Nobody/Anonymous (nobody) Summary: [Test Library] How to init/free a singleton Initial Comment: Hi, Where is the good place to initialize / free a singleton in an unit test suite ? If a add my singleton GetInstante() in the beginning of init_unit_test_suite(), and my FreeInstance() in the end of the method, they are called before executing test cases. Do I have to add a first test case, which will get my singleton, and a final test case to free it, or is there another way to do it properly ? Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=207586&aid=1670855&group_id=7586 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Boost-bugs mailing list Boost-bugs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs
participants (1)
-
SourceForge.net