<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 62: CPPUNIT_ASSERT change to report line number of exception</title><link>https://sourceforge.net/p/cppunit/patches/62/</link><description>Recent changes to 62: CPPUNIT_ASSERT change to report line number of exception</description><atom:link href="https://sourceforge.net/p/cppunit/patches/62/feed.rss" rel="self"/><language>en</language><lastBuildDate>Fri, 03 Jul 2009 02:39:18 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/cppunit/patches/62/feed.rss" rel="self" type="application/rss+xml"/><item><title>CPPUNIT_ASSERT change to report line number of exception</title><link>https://sourceforge.net/p/cppunit/patches/62/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;With the current implementation of CPPUNIT_ASSERT, if the expression throws an exception then the line number of the assertion is lost.  Means you have to break out the debugger and step through to work out which unit test line is throwing the exception.  CPPUNIT_ASSERT_NO_THROW doesn't quite cut it because although it'll catch the exception and report it nicely, it doesn't care whether the expression itself is true or false.&lt;br /&gt;
This patch changes CPPUNIT_ASSERT (in CPPUNIT_HAVE_CPP_SOURCE_ANNOTATION mode at least) to test the expression as normal, but also to catch any exceptions that are thrown and report those nicely too.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Duncan Fletcher</dc:creator><pubDate>Fri, 03 Jul 2009 02:39:18 -0000</pubDate><guid>https://sourceforge.net8c2b9da75ac2588306feb070a7db8dadde41ad81</guid></item></channel></rss>