Skip to content

Commit 822dc24

Browse files
authored
Merge pull request #410 from boostorg/develop
Merge for 1.85
2 parents 0dcca18 + 100a13c commit 822dc24

File tree

8 files changed

+18
-5
lines changed

8 files changed

+18
-5
lines changed

include/boost/test/detail/config.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class type_info;
165165
#if (defined(BOOST_MSVC) && BOOST_MSVC < 1900) || (defined(BOOST_GCC) && BOOST_GCC < 40700)
166166
# define BOOST_TEST_DEFAULTED_FUNCTION(fun, body) fun body
167167
#else
168-
# define BOOST_TEST_DEFAULTED_FUNCTION(fun, body) BOOST_DEFAULTED_FUNCTION(fun, body);
168+
# define BOOST_TEST_DEFAULTED_FUNCTION(fun, body) BOOST_DEFAULTED_FUNCTION(fun, body)
169169
#endif
170170

171171
//____________________________________________________________________________//

include/boost/test/impl/test_tools.ipp

+9
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,11 @@ format_report( OutStream& os, assertion_result const& pr, unit_test::lazy_ostrea
320320

321321
//____________________________________________________________________________//
322322

323+
#ifdef BOOST_MSVC
324+
#pragma warning(push)
325+
#pragma warning(disable : 4702) // There is intentionally unreachable code
326+
#endif
327+
323328
bool
324329
report_assertion( assertion_result const& ar,
325330
lazy_ostream const& assertion_descr,
@@ -411,6 +416,10 @@ report_assertion( assertion_result const& ar,
411416
return true;
412417
}
413418

419+
#ifdef BOOST_MSVC
420+
#pragma warning(pop)
421+
#endif
422+
414423
//____________________________________________________________________________//
415424

416425
assertion_result

include/boost/test/prg_exec_monitor.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030

3131
// Automatically link to the correct build variant where possible.
3232
#if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TEST_NO_LIB) && \
33+
!defined(BOOST_PRG_EXEC_MONITOR_NO_LIB) && \
3334
!defined(BOOST_TEST_SOURCE) && !defined(BOOST_TEST_INCLUDED)
3435
# define BOOST_LIB_NAME boost_prg_exec_monitor
3536

include/boost/test/test_exec_monitor.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

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

4849
# define BOOST_LIB_NAME boost_test_exec_monitor

include/boost/test/tools/detail/print_helper.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ struct print_log_value {
9797
std::streamsize set_precision( std::ostream& ostr, mpl::false_ )
9898
{
9999
if( std::numeric_limits<T>::is_specialized && std::numeric_limits<T>::radix == 2 )
100-
return ostr.precision( 2 + std::numeric_limits<T>::digits * 301/1000 );
100+
return ostr.precision( 2 + std::streamsize(std::numeric_limits<T>::digits) * 301/1000 );
101101
else if ( std::numeric_limits<T>::is_specialized && std::numeric_limits<T>::radix == 10 ) {
102102
#ifdef BOOST_NO_CXX11_NUMERIC_LIMITS
103103
// (was BOOST_NO_NUMERIC_LIMITS_LOWEST but now deprecated).

include/boost/test/unit_test.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
// ************************************************************************** //
2626

2727
#if !defined(BOOST_ALL_NO_LIB) && !defined(BOOST_TEST_NO_LIB) && \
28+
!defined(BOOST_UNIT_TEST_FRAMEWORK_NO_LIB) && \
2829
!defined(BOOST_TEST_SOURCE) && !defined(BOOST_TEST_INCLUDED) && \
2930
defined(BOOST_TEST_MAIN)
3031
# define BOOST_LIB_NAME boost_unit_test_framework

meta/libraries.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
],
1212
"maintainers": [
1313
"Gennadiy Rozental <rogeeff -at- gmail.com>",
14-
"Raffi Enficiaud <raffi.enficiaud -at- free.fr>"
14+
"Raffi Enficiaud <raffi.enficiaud -at- free.fr>",
15+
"Matt Borland <matt -at- mattborland.com>"
1516
],
16-
"cxxstd": "03"
17+
"cxxstd": "11"
1718
}

test/test-organization-ts/test-tree-management-test.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ BOOST_AUTO_TEST_CASE( manual_test_case_creation_test )
115115
BOOST_TEST( tc1->p_expected_failures == 0U );
116116
BOOST_TEST( tc1->p_timeout == 0U );
117117
BOOST_TEST( tc1->p_name == const_string( "empty_" ) );
118-
BOOST_TEST( tc1->p_test_func );
118+
BOOST_TEST( static_cast<bool>(tc1->p_test_func.get()) );
119119
BOOST_TEST( tc1->p_default_status == test_unit::RS_INHERIT );
120120
BOOST_TEST( tc1->p_run_status == test_unit::RS_INVALID );
121121
BOOST_TEST( !tc1->is_enabled() );

0 commit comments

Comments
 (0)