]> git.saurik.com Git - wxWidgets.git/commitdiff
don't log std::exceptions ourselves, let cppunit do it as it outputs more details
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 25 Mar 2009 13:32:19 +0000 (13:32 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 25 Mar 2009 13:32:19 +0000 (13:32 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/test.cpp

index fe22ad10cd28aa633423b69c6e87650de45b2375..02d819133828534c913fc5c117f134b63d943e8e 100644 (file)
@@ -107,6 +107,13 @@ public:
         {
             return functor();
         }
         {
             return functor();
         }
+        catch ( std::exception& e )
+        {
+            // cppunit deals with the standard exceptions itself, let it do as
+            // it output more details (especially for std::exception-derived
+            // CppUnit::Exception) than we do
+            throw;
+        }
         catch ( ... )
         {
             reportError(context, CppUnit::Message("Uncaught exception",
         catch ( ... )
         {
             reportError(context, CppUnit::Message("Uncaught exception",