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

@@ -81,7 +81,7 @@ class shared_memory_creation_test_wrapper_w
int main ()
{
BOOST_TRY{
BOOST_INTERPROCESS_TRY{
shared_memory_object::remove(ShmName);
test::test_named_creation<shared_memory_creation_test_wrapper>();
#ifdef BOOST_INTERPROCESS_WCHAR_NAMED_RESOURCES
@@ -102,11 +102,11 @@ int main ()
move_assign = boost::move(move_ctor);
}
}
BOOST_CATCH(std::exception &ex){
BOOST_INTERPROCESS_CATCH(std::exception &ex){
shared_memory_object::remove(ShmName);
std::cout << ex.what() << std::endl;
return 1;
} BOOST_CATCH_END
} BOOST_INTERPROCESS_CATCH_END
shared_memory_object::remove(ShmName);
return 0;
}