]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/interprocess/test/intermodule_singleton_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / interprocess / test / intermodule_singleton_test.cpp
index ce1e59c54982cfffb89c377b3fc75f47695267b6..915a9fe8191f5c8ddf43fe44da5c48afca4e72ec 100644 (file)
@@ -11,6 +11,7 @@
 #include <boost/interprocess/detail/intermodule_singleton.hpp>
 #include <boost/interprocess/detail/portable_intermodule_singleton.hpp>
 #include <iostream>
+#include <cstdlib> //for std::abort
 
 using namespace boost::interprocess;
 
@@ -184,7 +185,8 @@ class LogPhoenixTester
             sstr << "Logger<Tag>::constructed_times != Logger<Tag>::destroyed_times\n";
             sstr << "(" << Logger<Tag>::constructed_times << " vs. " << Logger<Tag>::destroyed_times << ")\n";
          }
-         throw std::runtime_error(sstr.str().c_str());
+         std::cout << "~LogPhoenixTester(), error: " << sstr.str() << std::endl;
+         std::abort();
       }
    }
 };
@@ -214,7 +216,8 @@ class LogDeadReferenceUser
          LogSingleton::get().log_it();
          std::string s("LogDeadReferenceUser failed for LogSingleton ");
          s += typeid(LogSingleton).name();
-         throw std::runtime_error(s.c_str());
+         std::cout << "~LogDeadReferenceUser(), error: " << s << std::endl;
+         std::abort();
       }
       catch(interprocess_exception &){
          //Correct behaviour