[Cppunit-cvs] cppunit2/src/cpput testinfo.cpp,1.6,1.7
Brought to you by:
blep
From: Baptiste L. <bl...@us...> - 2004-11-21 22:23:56
|
Update of /cvsroot/cppunit/cppunit2/src/cpput In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26626/src/cpput Modified Files: testinfo.cpp Log Message: * added api for logging Index: testinfo.cpp =================================================================== RCS file: /cvsroot/cppunit/cppunit2/src/cpput/testinfo.cpp,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** testinfo.cpp 20 Nov 2004 15:47:15 -0000 1.6 --- testinfo.cpp 21 Nov 2004 22:22:24 -0000 1.7 *************** *** 82,86 **** assertion["location"]["function"] = assertionLocation_.function_; TestInfo::appendToResult( "assertions", assertion ); // @todo Move appendToResult here ! if ( assertionType_ == abortingAssertion ) { --- 82,87 ---- assertion["location"]["function"] = assertionLocation_.function_; TestInfo::appendToResult( "assertions", assertion ); // @todo Move appendToResult here ! if ( !assertion.has( "failure_type" ) ) ! assertion["failure_type"] = "assertion"; if ( assertionType_ == abortingAssertion ) { *************** *** 220,226 **** } void appendFaultToResult( const OpenTest::Properties &fault ) { ! appendToResult( "faults", fault ); } --- 221,235 ---- } + void log( const std::string &text ) + { + appendToResult( "logs", text ); + } + void appendFaultToResult( const OpenTest::Properties &fault ) { ! OpenTest::Properties actualFault = fault; ! if ( !actualFault.has( "failure_type" ) ) ! actualFault["failure_type"] = "fault"; ! appendToResult( "faults", actualFault ); } |