mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-30 20:57:21 +02:00
Add catch(...) clauses to sp_array_test.cpp.
[SVN r81174]
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user