]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/exception/test/2-throw_exception_no_exceptions_test.cpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / libs / exception / test / 2-throw_exception_no_exceptions_test.cpp
index 91b84b72fbeed89fac977b8c5ac2d8332d7cc1a0..02f0e96d74dcea82e97dae452b8378ac88d92d00 100644 (file)
@@ -5,19 +5,16 @@
 
 #define BOOST_NO_EXCEPTIONS
 #include <boost/throw_exception.hpp>
-#include <boost/detail/lightweight_test.hpp>
 
 class my_exception: public std::exception { };
 
-bool called=false;
-
 namespace
 boost
     {
     void
     throw_exception( std::exception const & )
         {
-        called=true;
+        exit(0);
         }
     }
 
@@ -25,6 +22,5 @@ int
 main()
     {
     boost::throw_exception(my_exception());
-    BOOST_TEST(called);
-    return boost::report_errors();
+    return 1;
     }