forked from boostorg/exception
Merging recent changes from trunk.
[SVN r85636]
This commit is contained in:
@@ -143,6 +143,8 @@ test_std_exception()
|
||||
#ifndef BOOST_NO_RTTI
|
||||
std::type_info const * const * t=boost::get_error_info<boost::original_exception_type>(x);
|
||||
BOOST_TEST(t!=0 && *t!=0 && **t==typeid(T));
|
||||
std::string s=diagnostic_information(x);
|
||||
BOOST_TEST(!s.empty());
|
||||
#endif
|
||||
}
|
||||
catch(
|
||||
|
||||
@@ -35,8 +35,8 @@ boost_throw_exception_test()
|
||||
catch(
|
||||
boost::exception & x )
|
||||
{
|
||||
char const * const * file=boost::get_error_info<boost::throw_function>(x);
|
||||
char const * const * function=boost::get_error_info<boost::throw_file>(x);
|
||||
char const * const * function=boost::get_error_info<boost::throw_function>(x);
|
||||
char const * const * file=boost::get_error_info<boost::throw_file>(x);
|
||||
int const * line=boost::get_error_info<boost::throw_line>(x);
|
||||
BOOST_TEST( file && *file );
|
||||
BOOST_TEST( function && *function );
|
||||
@@ -55,8 +55,8 @@ boost_throw_exception_test()
|
||||
catch(
|
||||
boost::exception & x )
|
||||
{
|
||||
char const * const * file=boost::get_error_info<boost::throw_function>(x);
|
||||
char const * const * function=boost::get_error_info<boost::throw_file>(x);
|
||||
char const * const * function=boost::get_error_info<boost::throw_function>(x);
|
||||
char const * const * file=boost::get_error_info<boost::throw_file>(x);
|
||||
int const * line=boost::get_error_info<boost::throw_line>(x);
|
||||
int const * data=boost::get_error_info<test_data>(x);
|
||||
BOOST_TEST( file && *file );
|
||||
|
||||
Reference in New Issue
Block a user