diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-04-20 20:54:36 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-04-20 20:54:36 +0000 |
| commit | f05089dffe81419786776b60bc2dc13d2a421a5c (patch) | |
| tree | 8451a33146a505c999a28288fe4574e98f268238 /src/cppunit | |
| parent | c4995a9e022ed586cf4e3f166738dfe01bf51c16 (diff) | |
| download | cppunit-f05089dffe81419786776b60bc2dc13d2a421a5c.tar.gz | |
THANKS: updated
THANKS: updated
* src/cppunit/DynamicLibraryManager.cpp: bugfix: did not pass
library name to exception.
* include/cppunit/TestPath.h:
* src/cppunit/TestPath.cpp: changed into value object.
* src/cppunit/BeosDynamicLibraryManager.cpp: integrated patch from
Shibu Yoshiki for BeOS ('cuppa' project team).
* src/DllPlugInTester/CommandLineParser.h:
* src/DllPlugInTester/CommandLineParser.cpp: added. Command line
parsing.
* src/DllPlugInTester/DllPlugInTester.cpp: full command line support
with parameters for plug-ins.
* src/DllPlugInTester/makefile.am:
* examples/simple/makefile.am:
* examples/cppunittest/makefile.am: integrated Jeffrey Morgan patch,
Unix side should be working again.
* examples/ReadMe.txt: added. Brief description of each example.
* examples/cppunittest/CppUnitTestPlugIn.cpp:
* examples/cppunittest/CppUnitTestPlugIn.dsp: added. New project to
build CppUnit's test suite as a test plug-in.
* examples/cppunittest/CppUnitTestSuite.cpp: updated. Use new
helper macros to create the test suite hierarchy.
* examples/simple/simple_plugin.opt: added. Contains debug tab
settings.
* examples/ClockerPlugIn/ClockerListener.cpp:
* examples/ClockerPlugIn/ClockerListener.h:
* examples/ClockerPlugIn/Timer.cpp:
* examples/ClockerPlugIn/Timer.h:
* examples/ClockerPlugIn/WinNtTimer.cpp:
* examples/ClockerPlugIn/WinNtTimer.h:
* examples/ClockerPlugIn/ClockerPlugIn.cpp:
* examples/ClockerPlugIn/ClockerPlugIn.dsp: added. test listener
plug-in that times tests.
* examples/DumperPlugIn/DumperListener.cpp:
* examples/DumperPlugIn/DumperListener.h:
* examples/DumperPlugIn/DumperPlugIn.cpp:
* examples/DumperPlugIn/DumperPlugIn.dsp: added. test listener
plug-in that dump the test tree.
Diffstat (limited to 'src/cppunit')
| -rw-r--r-- | src/cppunit/BeOsDynamicLibraryManager.cpp | 2 | ||||
| -rw-r--r-- | src/cppunit/DynamicLibraryManager.cpp | 1 | ||||
| -rw-r--r-- | src/cppunit/Makefile.am | 5 | ||||
| -rw-r--r-- | src/cppunit/TestPath.cpp | 25 | ||||
| -rw-r--r-- | src/cppunit/cppunit.dsp | 4 |
5 files changed, 27 insertions, 10 deletions
diff --git a/src/cppunit/BeOsDynamicLibraryManager.cpp b/src/cppunit/BeOsDynamicLibraryManager.cpp index fe5db9f..bdf6c7a 100644 --- a/src/cppunit/BeOsDynamicLibraryManager.cpp +++ b/src/cppunit/BeOsDynamicLibraryManager.cpp @@ -20,7 +20,7 @@ DynamicLibraryManager::doLoadLibrary( const std::string &libraryName ) void DynamicLibraryManager::doReleaseLibrary() { - return ::unload_add_on( (image_id)m_libraryHandle ) == B_OK; + ::unload_add_on( (image_id)m_libraryHandle ); } diff --git a/src/cppunit/DynamicLibraryManager.cpp b/src/cppunit/DynamicLibraryManager.cpp index 1c92e3e..00e97f8 100644 --- a/src/cppunit/DynamicLibraryManager.cpp +++ b/src/cppunit/DynamicLibraryManager.cpp @@ -9,6 +9,7 @@ namespace CppUnit DynamicLibraryManager::DynamicLibraryManager( const std::string &libraryFileName ) : m_libraryHandle( NULL ) + , m_libraryName( libraryFileName ) { loadLibrary( libraryFileName ); } diff --git a/src/cppunit/Makefile.am b/src/cppunit/Makefile.am index 44a925f..ecd4887 100644 --- a/src/cppunit/Makefile.am +++ b/src/cppunit/Makefile.am @@ -1,5 +1,5 @@ # -# $Id: Makefile.am,v 1.29 2002-04-18 09:58:57 blep Exp $ +# $Id: Makefile.am,v 1.30 2002-04-20 21:51:33 blep Exp $ # EXTRA_DIST = cppunit.dsp cppunit_dll.dsp DllMain.cpp @@ -48,6 +48,3 @@ libcppunit_la_LDFLAGS= \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) \ -release $(LT_RELEASE) - - - diff --git a/src/cppunit/TestPath.cpp b/src/cppunit/TestPath.cpp index ecb89fd..00a7b33 100644 --- a/src/cppunit/TestPath.cpp +++ b/src/cppunit/TestPath.cpp @@ -70,11 +70,26 @@ TestPath::TestPath( Test *searchRoot, } +TestPath::TestPath( const TestPath &other ) + : m_tests( other.m_tests ) +{ +} + + TestPath::~TestPath() { } +TestPath & +TestPath::operator =( const TestPath &other ) +{ + if ( &other != this ) + m_tests = other.m_tests; + return *this; +} + + bool TestPath::isValid() const { @@ -85,7 +100,7 @@ TestPath::isValid() const void TestPath::add( Test *test ) { - _tests.push_back( test ); + m_tests.push_back( test ); } @@ -103,7 +118,7 @@ TestPath::insert( Test *test, { if ( index < 0 || index > getTestCount() ) throw std::out_of_range( "TestPath::insert(): index out of range" ); - _tests.insert( _tests.begin() + index, test ); + m_tests.insert( m_tests.begin() + index, test ); } void @@ -128,7 +143,7 @@ void TestPath::removeTest( int index ) { checkIndexValid( index ); - _tests.erase( _tests.begin() + index ); + m_tests.erase( m_tests.begin() + index ); } @@ -143,7 +158,7 @@ TestPath::up() int TestPath::getTestCount() const { - return _tests.size(); + return m_tests.size(); } @@ -151,7 +166,7 @@ Test * TestPath::getTestAt( int index ) const { checkIndexValid( index ); - return _tests[index]; + return m_tests[index]; } diff --git a/src/cppunit/cppunit.dsp b/src/cppunit/cppunit.dsp index 4674718..7215e49 100644 --- a/src/cppunit/cppunit.dsp +++ b/src/cppunit/cppunit.dsp @@ -101,6 +101,10 @@ SOURCE="..\..\INSTALL-WIN32.txt" # End Source File # Begin Source File +SOURCE=..\..\doc\Money.dox +# End Source File +# Begin Source File + SOURCE=..\..\NEWS # End Source File # Begin Source File |
