Skip to content

Commit

Permalink
Merge pull request #410 from boostorg/develop
Browse files Browse the repository at this point in the history
Merge for 1.85
  • Loading branch information
mborland committed Feb 29, 2024
2 parents 0dcca18 + 100a13c commit 822dc24
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion include/boost/test/detail/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ class type_info;
#if (defined(BOOST_MSVC) && BOOST_MSVC < 1900) || (defined(BOOST_GCC) && BOOST_GCC < 40700)
# define BOOST_TEST_DEFAULTED_FUNCTION(fun, body) fun body
#else
# define BOOST_TEST_DEFAULTED_FUNCTION(fun, body) BOOST_DEFAULTED_FUNCTION(fun, body);
# define BOOST_TEST_DEFAULTED_FUNCTION(fun, body) BOOST_DEFAULTED_FUNCTION(fun, body)
#endif

//____________________________________________________________________________//
Expand Down
9 changes: 9 additions & 0 deletions include/boost/test/impl/test_tools.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,11 @@ format_report( OutStream& os, assertion_result const& pr, unit_test::lazy_ostrea

//____________________________________________________________________________//

#ifdef BOOST_MSVC
#pragma warning(push)
#pragma warning(disable : 4702) // There is intentionally unreachable code
#endif

bool
report_assertion( assertion_result const& ar,
lazy_ostream const& assertion_descr,
Expand Down Expand Up @@ -411,6 +416,10 @@ report_assertion( assertion_result const& ar,
return true;
}

#ifdef BOOST_MSVC
#pragma warning(pop)
#endif

//____________________________________________________________________________//

assertion_result
Expand Down
1 change: 1 addition & 0 deletions include/boost/test/prg_exec_monitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

// Automatically link to the correct build variant where possible.
#if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TEST_NO_LIB) && \
!defined(BOOST_PRG_EXEC_MONITOR_NO_LIB) && \
!defined(BOOST_TEST_SOURCE) && !defined(BOOST_TEST_INCLUDED)
# define BOOST_LIB_NAME boost_prg_exec_monitor

Expand Down
1 change: 1 addition & 0 deletions include/boost/test/test_exec_monitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

// Automatically link to the correct build variant where possible.
#if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TEST_NO_LIB) && \
!defined(BOOST_TEST_EXEC_MONITOR_NO_LIB) && \
!defined(BOOST_TEST_SOURCE) && !defined(BOOST_TEST_INCLUDED)

# define BOOST_LIB_NAME boost_test_exec_monitor
Expand Down
2 changes: 1 addition & 1 deletion include/boost/test/tools/detail/print_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ struct print_log_value {
std::streamsize set_precision( std::ostream& ostr, mpl::false_ )
{
if( std::numeric_limits<T>::is_specialized && std::numeric_limits<T>::radix == 2 )
return ostr.precision( 2 + std::numeric_limits<T>::digits * 301/1000 );
return ostr.precision( 2 + std::streamsize(std::numeric_limits<T>::digits) * 301/1000 );
else if ( std::numeric_limits<T>::is_specialized && std::numeric_limits<T>::radix == 10 ) {
#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
// (was BOOST_NO_NUMERIC_LIMITS_LOWEST but now deprecated).
Expand Down
1 change: 1 addition & 0 deletions include/boost/test/unit_test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
// ************************************************************************** //

#if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TEST_NO_LIB) && \
!defined(BOOST_UNIT_TEST_FRAMEWORK_NO_LIB) && \
!defined(BOOST_TEST_SOURCE) && !defined(BOOST_TEST_INCLUDED) && \
defined(BOOST_TEST_MAIN)
# define BOOST_LIB_NAME boost_unit_test_framework
Expand Down
5 changes: 3 additions & 2 deletions meta/libraries.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
],
"maintainers": [
"Gennadiy Rozental <rogeeff -at- gmail.com>",
"Raffi Enficiaud <raffi.enficiaud -at- free.fr>"
"Raffi Enficiaud <raffi.enficiaud -at- free.fr>",
"Matt Borland <matt -at- mattborland.com>"
],
"cxxstd": "03"
"cxxstd": "11"
}
2 changes: 1 addition & 1 deletion test/test-organization-ts/test-tree-management-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ BOOST_AUTO_TEST_CASE( manual_test_case_creation_test )
BOOST_TEST( tc1->p_expected_failures == 0U );
BOOST_TEST( tc1->p_timeout == 0U );
BOOST_TEST( tc1->p_name == const_string( "empty_" ) );
BOOST_TEST( tc1->p_test_func );
BOOST_TEST( static_cast<bool>(tc1->p_test_func.get()) );
BOOST_TEST( tc1->p_default_status == test_unit::RS_INHERIT );
BOOST_TEST( tc1->p_run_status == test_unit::RS_INVALID );
BOOST_TEST( !tc1->is_enabled() );
Expand Down

0 comments on commit 822dc24

Please sign in to comment.