Test files: Replace BOOST_TRY/CATCH family macros with BOOST_INTERPROCESS_TRY/CATCH

This commit is contained in:
Ion Gaztañaga
2024-08-03 22:47:34 +02:00
parent 865573a821
commit 4a011349db
36 changed files with 218 additions and 222 deletions

View File

@@ -230,14 +230,14 @@ int string_shared_ptr_vector_insertion_test()
}
bool success = false;
//Now this should throw
BOOST_TRY{
BOOST_INTERPROCESS_TRY{
string_shared_ptr_t dummy(*beg);
//We should never reach here
return 1;
}
BOOST_CATCH(const boost::interprocess::bad_weak_ptr &){
BOOST_INTERPROCESS_CATCH(const boost::interprocess::bad_weak_ptr &){
success = true;
} BOOST_CATCH_END
} BOOST_INTERPROCESS_CATCH_END
if(!success){
return 1;
}
@@ -466,12 +466,12 @@ int basic_shared_ptr_test()
BOOST_TEST(wp1.expired());
BOOST_TEST(wp1.use_count() == 0);
BOOST_TRY{
BOOST_INTERPROCESS_TRY{
x_shared_ptr sp1(wp1);
BOOST_ERROR("shared_ptr<X, A, D> sp1(wp1) failed to throw");
}
BOOST_CATCH(boost::interprocess::bad_weak_ptr const &)
{} BOOST_CATCH_END
BOOST_INTERPROCESS_CATCH(boost::interprocess::bad_weak_ptr const &)
{} BOOST_INTERPROCESS_CATCH_END
test_is_zero(wp1.lock());