]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/exception/test/throw_exception_test.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / exception / test / throw_exception_test.cpp
index c6c0eeb7fe4f5842cbdcac1d6913bb2c7bfb3dff..4b99252eaf28f8850f4f25ed9ca68624c6cb20c5 100644 (file)
@@ -3,6 +3,12 @@
 //Distributed under the Boost Software License, Version 1.0. (See accompanying
 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 
+#include <boost/config.hpp>
+
+#if defined( BOOST_NO_EXCEPTIONS )
+#   error This program requires exception handling.
+#endif
+
 #include "helper2.hpp"
 #include <boost/exception/get_error_info.hpp>
 #include <boost/exception/info.hpp>
@@ -40,7 +46,7 @@ boost_throw_exception_test()
         int const * line=boost::get_error_info<boost::throw_line>(x);
         BOOST_TEST( file && *file );
         BOOST_TEST( function && *function );
-        BOOST_TEST( line && *line==32 );
+        BOOST_TEST( line && *line==38 );
         }
     catch(
     ... )
@@ -61,7 +67,7 @@ boost_throw_exception_test()
         int const * data=boost::get_error_info<test_data>(x);
         BOOST_TEST( file && *file );
         BOOST_TEST( function && *function );
-        BOOST_TEST( line && *line==52 );
+        BOOST_TEST( line && *line==58 );
         BOOST_TEST( data && *data==42 );
         }
     catch(