diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-06-27 20:23:22 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2001-06-27 20:23:22 +0000 |
| commit | 5813e2e80e995893a0a2d2fe4a6f6a8c2155d82c (patch) | |
| tree | 317da54d9f4aaa23d85b996b7624f21f96b010e0 /src/msvc6/testpluginrunner/TestPlugInException.cpp | |
| parent | d52bd686fe91e4c5104b60632ed18eb26ae827f6 (diff) | |
| download | cppunit-5813e2e80e995893a0a2d2fe4a6f6a8c2155d82c.tar.gz | |
Examples/msvc6/CppUnitTestApp/CppUnitTestApp.
examples/msvc6/CppUnitTestApp/CppUnitTestApp.dsp:
moved dll copy from post-build to custom build setting, so that the
dll is copied even if the CppUnitTestApp was not modified.
* examples/msvc6/TestPlugIn/: a new example of test plug in.
* src/msvc6/TestRunner/ListCtrlFormatter.*
* src/msvc6/TestRunner/ListCtrlSetter.*:
added, helper to manipulate list control.
* src/msvc6/TestRunner/TestRunnerDlg.*: change to make the error list
more compact. text moved to string resources. icons added for typ
test tfailure type.
* src/msvc6/TestRunner/MostRecentTests.*: added, classes that will
replace the current implementation of MRU test which make it hard
to subclass the dialog.
* src/msvc6/TestRunner/res/errortype.bmp: added, bitmap with error
types (failure and error).
* src/msvc6/TestPlugInRunner/: A test runner to run test plug in.
Test plug in are DLL that publish a specified plug in interface.
Those DLL are loaded and reloaded by the TestPlugInRunner to run
tests. This remove the need to wrap DLL with a executable to test
them.
* src/cppunit/cppunit.dsp:
removed config.h from project
added Portability.h and config-msvc6.h
* include/cppunit/config-msvc6.h:
undef CPPUNIT_FUNC_STRING_COMPARE_STRING_FIRST
Diffstat (limited to 'src/msvc6/testpluginrunner/TestPlugInException.cpp')
| -rw-r--r-- | src/msvc6/testpluginrunner/TestPlugInException.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/msvc6/testpluginrunner/TestPlugInException.cpp b/src/msvc6/testpluginrunner/TestPlugInException.cpp new file mode 100644 index 0000000..f006c0f --- /dev/null +++ b/src/msvc6/testpluginrunner/TestPlugInException.cpp @@ -0,0 +1,43 @@ +// ////////////////////////////////////////////////////////////////////////// +// Implementation file TestPlugInException.cpp for class TestPlugInException +// (c)Copyright 2000, Baptiste Lepilleur. +// Created: 2001/06/23 +// ////////////////////////////////////////////////////////////////////////// + +#include "StdAfx.h" +#include "TestPlugInException.h" + + +TestPlugInException::TestPlugInException( std::string message, + Cause cause ) : + runtime_error( message ), + m_cause( cause ) +{ +} + + +TestPlugInException::TestPlugInException( const TestPlugInException © ) : + runtime_error( copy ) +{ +} + + +TestPlugInException::~TestPlugInException() +{ +} + + +TestPlugInException & +TestPlugInException::operator =( const TestPlugInException © ) +{ + runtime_error::operator =( copy ); + m_cause = copy.m_cause; + return *this; +} + + +TestPlugInException::Cause +TestPlugInException::getCause() const +{ + return m_cause; +} |
