[Mockpp-commits] mockpp/mockpp/examples/tutorial poormock.cpp,1.7,1.8 visitmock.cpp,1.10,1.11
Brought to you by:
ewald-arnold
From: Ewald A. <ewa...@us...> - 2005-04-03 18:33:03
|
Update of /cvsroot/mockpp/mockpp/mockpp/examples/tutorial In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9425/mockpp/examples/tutorial Modified Files: poormock.cpp visitmock.cpp Log Message: more efforts to make msvc6 compile Index: poormock.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/examples/tutorial/poormock.cpp,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- poormock.cpp 22 Mar 2005 22:03:25 -0000 1.7 +++ poormock.cpp 3 Apr 2005 18:32:53 -0000 1.8 @@ -14,6 +14,10 @@ #include "consumer.h" #include <iostream> + +#ifndef _MSC_VER +using std::exit; +#endif /** Quick-n-dirty asserter. * If the condition fails the condition is printed @@ -25,7 +29,7 @@ << "Error occured.\n" << #x << std::endl \ << std::endl \ << std::flush; \ - std::exit(1); \ + exit(1); \ } Index: visitmock.cpp =================================================================== RCS file: /cvsroot/mockpp/mockpp/mockpp/examples/tutorial/visitmock.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- visitmock.cpp 22 Mar 2005 22:03:25 -0000 1.10 +++ visitmock.cpp 3 Apr 2005 18:32:53 -0000 1.11 @@ -74,7 +74,7 @@ read_controller.addReturnValue("record-3"); // processing is not exactly defined - mock.calculate(eq<unsigned>(5, 5)); + mock.calculate(eq<unsigned>((unsigned)5, (unsigned)5)); mock.calculate(eq<unsigned>(5, 5)); mock.calculate(eq<unsigned>(5, 5)); calculate_controller.addResponseValue(10, eq<unsigned>(2, 2)); |