[Cppunit-devel] GCC'ism
Brought to you by:
blep
From: John C. <joh...@ta...> - 2002-01-21 21:01:48
|
I'm using CppUnit-1.6.2 under the GNU gcc compiler and I would like to inject one or two slight gcc'isms into it. In CPPUNIT_ASSERT macros I would like to use the __PRETTY_FUNCTION__ keyword, this allows one to immediately see which function had the assert failure, and more importantantly which instantiation of a template test function had the failure. (Very useful if you are using templates and CppUnit to enforce Bug Compatibility between two implementations...) In the TextTestResult I would like to reformat the error messages to look (at least to emacs) like gcc compiler error messages. This would enable an Emacs user to put the cursor over the offended assert failure, hit enter and Emacs would bring up that file at that source line. What is the favoured manner of making such environment specific changes to CppUnit? Preprocessor conditionals? #if __GNUC__ Do this #else Do that #endif Autoconf enable/disable feature? configure --enable-pretty-function --enable-emacs-support What is the favoured manner of receiving such changes? --As a request, you will do it. --No yuck, don't want that feature, only C++ pure as the driven snowy standard please! --As a patch on 1.6.2. --As a patch on latest CVS version. --Here is access to the CVS tree, do it yourself. Thanks, John Carter Phone : (64)(3) 358 6639 Tait Electronics Fax : (64)(3) 359 4632 PO Box 1645 Christchurch Email : joh...@ta... New Zealand Zeitgeist shutting down for corrective maintenance, please log off. |