Update of /cvsroot/cppunit/cppunit2
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5281
Modified Files:
TODO sconstruct
Added Files:
changelog.txt
Log Message:
Modified assertion implementation to force evaluation of user
condition expression first, while preserving delegation to
function, overloading and optional parameters feature.
See CPPUT_BEGIN_ASSERTION_MACRO() documentation in testinfo.h for an example
to update your custom assertion code.
New implementation rely on operator evaluation order and operator overloading. The trick is documented in CPPUT_BEGIN_ASSERTION_MACRO().
Index: sconstruct
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/sconstruct,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** sconstruct 16 Mar 2007 22:41:39 -0000 1.31
--- sconstruct 14 Aug 2007 17:30:52 -0000 1.32
***************
*** 6,9 ****
--- 6,10 ----
# http://www.scons.org/wiki/DynamicSourceGenerator
# (see Gary mail on the user ML 19/07/2006 @ 17h25)
+ # May be a scons issue: tool is added without calling exists() [e.g. added tool may not exist]
--- NEW FILE: changelog.txt ---
* 2007/08/14 blep
Modified assertion implementation to force evaluation of user
condition expression first, while preserving delegation to
function, overloading and optional parameters feature.
See CPPUT_BEGIN_ASSERTION_MACRO() documentation in testinfo.h for an example
to update your custom assertion code.
Index: TODO
===================================================================
RCS file: /cvsroot/cppunit/cppunit2/TODO,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** TODO 2 Sep 2006 11:24:53 -0000 1.3
--- TODO 14 Aug 2007 17:30:52 -0000 1.4
***************
*** 1,3 ****
- * figure out how CHECK/ASSERT can be made more friendly to developper when debugging
- => avoid stepping into cppunit code before processing the assertion.
* complete works on the CommandLines library => likely moved to opentest.
--- 1 ----
|