mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Test files: Replace BOOST_TRY/CATCH family macros with BOOST_INTERPROCESS_TRY/CATCH
This commit is contained in:
@@ -42,7 +42,7 @@ int main()
|
||||
{
|
||||
//Remove any other old shared memory from the system
|
||||
bip::shared_memory_object::remove(bip::test::get_process_id_name());
|
||||
BOOST_TRY {
|
||||
BOOST_INTERPROCESS_TRY {
|
||||
bip::managed_shared_memory shm(bip::create_only, bip::test::get_process_id_name(), 65536);
|
||||
|
||||
//Elements to be inserted in unordered containers
|
||||
@@ -91,11 +91,11 @@ int main()
|
||||
return 1;
|
||||
|
||||
}
|
||||
BOOST_CATCH(...){
|
||||
BOOST_INTERPROCESS_CATCH(...){
|
||||
//Remove shared memory from the system
|
||||
bip::shared_memory_object::remove(bip::test::get_process_id_name());
|
||||
BOOST_RETHROW
|
||||
} BOOST_CATCH_END
|
||||
BOOST_INTERPROCESS_RETHROW
|
||||
} BOOST_INTERPROCESS_CATCH_END
|
||||
//Remove shared memory from the system
|
||||
bip::shared_memory_object::remove(bip::test::get_process_id_name());
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user