From 2ba7b6b99b707371e05a80eb44fff07633fb99fe Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 4 Nov 2012 18:30:03 +0000 Subject: [PATCH] Add catch(...) clauses to sp_array_test.cpp. [SVN r81174] --- test/sp_array_test.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/test/sp_array_test.cpp b/test/sp_array_test.cpp index eab918e..0c7f597 100644 --- a/test/sp_array_test.cpp +++ b/test/sp_array_test.cpp @@ -95,6 +95,10 @@ int main() 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 @@ int main() 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 @@ int main() 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 @@ int main() 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 @@ int main() catch( boost::bad_weak_ptr const& ) { } + catch( ... ) + { + BOOST_ERROR( "px[0].shared_from_this() threw something else than bad_weak_ptr" ); + } px.reset();