Re: [Cppunit-devel] Improving CppUnit portability
Brought to you by:
blep
From: Baptiste L. <gai...@fr...> - 2002-07-11 17:02:49
|
----- Original Message ----- From: "Baptiste Lepilleur" <gai...@fr...> To: <cpp...@li...> Sent: Wednesday, July 10, 2002 8:45 PM Subject: [Cppunit-devel] Improving CppUnit portability > - Templatized member functions. > Solved. TestSuiteBuilder::addTestCallerForException() has been > removed. Forgot another item related to template: - Default template argument Issue: TestCaller use a default template argument to filter no exception. Solution: should be solved when the following item of the TODO list is done: Provide a mean for the user to catch 'custom' exception in TestCase::run (exception that do not subclass std::exception, such as MFC CException, or RogueWave RWXMsg). TestCaller will probably not need to test for expected exception... > - STL may not be in ::std namespace. > I remember someone saying the issue was partially solved doing a : > #define std > How well does this works ? I looked at STLPort (http://stlport.org/) some and they do just that (for lowly conformant compiler). So I'll go that way, it keep the code 'clean'. I'll just add an epilog header which will restore 'std' to whatever is was before it was defined by CppUnit. > - mutable keyword (?) > Only used in MockTestCase of cppunit test suite. Easily removed. Done. Use const_cast now. > - C++ cast (const_cast ...) > Easily solved (a few occurences of const_cast). Can be convert to > C-style cast. Done. Use a macro that expands to const_cast if possible or do a C-style cast (there was just about 5 occurences). Baptiste. |