From 9912799caf7cbf4ad7fa2c36294c7e4f569b33b2 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 25 Mar 2009 13:32:19 +0000 Subject: [PATCH] don't log std::exceptions ourselves, let cppunit do it as it outputs more details git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59847 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test.cpp b/tests/test.cpp index fe22ad10cd..02d8191338 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -107,6 +107,13 @@ public: { 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", -- 2.45.2