CppUnit2: assertion implementation change

View: New views
1 Messages — Rating Filter:   Alert me  

CppUnit2: assertion implementation change

by cppunit-devel mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
I finally managed to find how to tackle the todo on assertion:
- preserve the current scheme to implement an assertion: delegating to a function to allow overloading and optional parameters
- but make it so that the user condition is evaluated first (and not SourceLocation check point object...) to make debugging easier.
 
There is no change on existing assertion macros. But if you have written some custom assertions, you will need to update the code. See CPPUT_BEGIN_ASSERTION_MACRO() documentation in testinfo.h for an example on how to update your existing assertion code.
 
Let's me know if you run into any issues as I was not able to compile this on all the usual compilers (only tested msvc71 & msvc80).
 
Baptiste.
 

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Cppunit-devel mailing list
Cppunit-devel@...
https://lists.sourceforge.net/lists/listinfo/cppunit-devel