Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81174 - trunk/libs/smart_ptr/test
From: pdimov_at_[hidden]
Date: 2012-11-04 13:30:05


Author: pdimov
Date: 2012-11-04 13:30:03 EST (Sun, 04 Nov 2012)
New Revision: 81174
URL: http://svn.boost.org/trac/boost/changeset/81174

Log:
Add catch(...) clauses to sp_array_test.cpp.
Text files modified:
   trunk/libs/smart_ptr/test/sp_array_test.cpp | 20 ++++++++++++++++++++
   1 files changed, 20 insertions(+), 0 deletions(-)

Modified: trunk/libs/smart_ptr/test/sp_array_test.cpp
==============================================================================
--- trunk/libs/smart_ptr/test/sp_array_test.cpp (original)
+++ trunk/libs/smart_ptr/test/sp_array_test.cpp 2012-11-04 13:30:03 EST (Sun, 04 Nov 2012)
@@ -95,6 +95,10 @@
         catch( boost::bad_weak_ptr const& )
         {
         }
+ catch( ... )
+ {
+ BOOST_ERROR( "px2[0].shared_from_this() threw something else than bad_weak_ptr" );
+ }
 
         BOOST_TEST( X::allocations == 1 );
         BOOST_TEST( X::instances == 3 );
@@ -210,6 +214,10 @@
         catch( boost::bad_weak_ptr const& )
         {
         }
+ catch( ... )
+ {
+ BOOST_ERROR( "px2[0].shared_from_this() threw something else than bad_weak_ptr" );
+ }
 
         px2.reset();
 
@@ -236,6 +244,10 @@
         catch( boost::bad_weak_ptr const& )
         {
         }
+ catch( ... )
+ {
+ BOOST_ERROR( "px2[0].shared_from_this() threw something else than bad_weak_ptr" );
+ }
 
         px2.reset();
 
@@ -258,6 +270,10 @@
         catch( boost::bad_weak_ptr const& )
         {
         }
+ catch( ... )
+ {
+ BOOST_ERROR( "px[0].shared_from_this() threw something else than bad_weak_ptr" );
+ }
 
         px.reset();
 
@@ -279,6 +295,10 @@
         catch( boost::bad_weak_ptr const& )
         {
         }
+ catch( ... )
+ {
+ BOOST_ERROR( "px[0].shared_from_this() threw something else than bad_weak_ptr" );
+ }
 
         px.reset();
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk