[Mockpp-commits] mockpp/mockpp/tests AssertMo_test.cpp,1.26,1.27 compilecheck.cpp,1.24,1.25 Verifyin
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-12-03 13:10:23
|
Update of /cvsroot/mockpp/mockpp/mockpp/tests In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6040/mockpp/tests Modified Files: AssertMo_test.cpp compilecheck.cpp VerifyingTestCaller_test.cpp Log Message: central exception handling Index: compilecheck.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/compilecheck.cpp,v retrieving revision 1.24 retrieving revision 1.25 diff -u -d -r1.24 -r1.25 --- compilecheck.cpp 27 Nov 2005 17:27:57 -0000 1.24 +++ compilecheck.cpp 3 Dec 2005 13:10:11 -0000 1.25 @@ -64,7 +64,7 @@ virtual void verify() { - // MOCKPP_THROW(AssertionFailedError()); + // forwardException(AssertionFailedError()); } }; @@ -99,7 +99,7 @@ virtual void verify() { - // MOCKPP_THROW(AssertionFailedException()); + // forwardException(AssertionFailedException()); } }; @@ -142,7 +142,7 @@ virtual void verify() { - // MOCKPP_THROW(AssertionFailedException()); + // forwardException(AssertionFailedException()); } }; @@ -312,7 +312,7 @@ try { std::cout << "throw?\n"; - MOCKPP_THROW(ex); + forwardException(ex); } catch(std::exception *ex) { Index: AssertMo_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/AssertMo_test.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -d -r1.26 -r1.27 --- AssertMo_test.cpp 28 Nov 2005 19:03:09 -0000 1.26 +++ AssertMo_test.cpp 3 Dec 2005 13:10:11 -0000 1.27 @@ -345,7 +345,7 @@ #ifndef MOCKPP_NO_EXCEPTIONS static void do_a_throw(unsigned val) { - MOCKPP_THROW((unsigned) val); + mockpp::forwardMalfunctionData((unsigned) val); } #endif Index: VerifyingTestCaller_test.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/tests/VerifyingTestCaller_test.cpp,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- VerifyingTestCaller_test.cpp 1 Dec 2005 18:15:08 -0000 1.9 +++ VerifyingTestCaller_test.cpp 3 Dec 2005 13:10:11 -0000 1.10 @@ -108,7 +108,7 @@ void thrower() { - MOCKPP_THROW(1); + mockpp::forwardMalfunctionData(1); } }; |