diff options
| author | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-08-27 20:51:18 +0000 |
|---|---|---|
| committer | Baptiste Lepilleur <gaiacrtn@free.fr> | 2002-08-27 20:51:18 +0000 |
| commit | c86c65b7d821fe4bb046c489528108843513e63d (patch) | |
| tree | 0df76dcf21360b74ec3a401f8b077da5d839f2e9 /src/cppunit/DefaultProtector.cpp | |
| parent | 69a36d9356412dddb51d8f31fbbac45ac52f7f30 (diff) | |
| download | cppunit-c86c65b7d821fe4bb046c489528108843513e63d.tar.gz | |
CodingGuideLines.
CodingGuideLines.txt: updated for OS/390 C++ limitation.
* examples/cppunittests/MockFunctor.h: added. Mock Functor to help
testing.
* examples/cppunittests/MockProtector.h: qdded. Mock Protector to help
testing.
* examples/cppunittests/TestResultTest.h
* examples/cppunittests/TestResultTest.cpp: added tests for
pushProtector(), popProtector() and protect().
* include/cppunit/TestAssert.h: removed default message value from
assertEquals(). Caused compilation error on OS/390.
* include/cppunit/plugin/PlugInParameters.h:
* src/cppunit/PlugInParameters.cpp: renamed commandLine() to
getCommandLine().
* src/msvc6/testrunner/TestRunnerDlg.h:
* src/msvc6/testrunner/TestRunnerDlg.cpp: bug fix, disabled Browse
button while running tests.
Diffstat (limited to 'src/cppunit/DefaultProtector.cpp')
| -rw-r--r-- | src/cppunit/DefaultProtector.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/cppunit/DefaultProtector.cpp b/src/cppunit/DefaultProtector.cpp index d05765c..72460a2 100644 --- a/src/cppunit/DefaultProtector.cpp +++ b/src/cppunit/DefaultProtector.cpp @@ -12,12 +12,7 @@ DefaultProtector::protect( const Functor &functor, { try { - // BUG: => should return what is returned. Need to update - // UT to prove there is a bug. Consequence: runTest() is called - // even if setUp() failed in a 'sub-protector'. - functor(); - return true; -// return functor(); + return functor(); } catch ( Exception &failure ) { |
