[Cppunit-cvs] cppunit2/src/cpputtest testtestcase.cpp,1.10,1.11
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2005-02-23 23:07:04
|
Update of /cvsroot/cppunit/cppunit2/src/cpputtest In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28167/src/cpputtest Modified Files: testtestcase.cpp Log Message: * fixed portability issue (std::exception does not have a const char * constructor). Index: testtestcase.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpputtest/testtestcase.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** testtestcase.cpp 21 Nov 2004 22:28:24 -0000 1.10 --- testtestcase.cpp 23 Feb 2005 23:06:50 -0000 1.11 *************** *** 2,5 **** --- 2,6 ---- #include <cpput/testcase.h> #include <iostream> + #include <stdexcept> #include "mocktestvisitor.h" *************** *** 70,74 **** { ++*flag; ! throw std::exception( "callback exception" ); } --- 71,75 ---- { ++*flag; ! throw std::runtime_error( "callback exception" ); } |