forked from boostorg/assert
Add <warning>extra to all tests, -Wshadow to gcc
This commit is contained in:
@ -1,14 +1,20 @@
|
||||
# Boost.Assert Library test Jamfile
|
||||
#
|
||||
# Copyright (c) 2014, 2017 Peter Dimov
|
||||
# Copyright (c) 2014, 2017, 2019 Peter Dimov
|
||||
#
|
||||
# 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
|
||||
|
||||
# bring in rules for testing
|
||||
import testing ;
|
||||
|
||||
project : requirements
|
||||
<warnings>extra
|
||||
<toolset>msvc:<warnings-as-errors>on
|
||||
<toolset>clang:<warnings-as-errors>on
|
||||
<toolset>gcc:<warnings-as-errors>on
|
||||
<toolset>gcc:<cxxflags>-Wshadow ;
|
||||
|
||||
run assert_test.cpp ;
|
||||
run current_function_test.cpp
|
||||
: : : <test-info>always_show_run_output ;
|
||||
@ -29,6 +35,6 @@ run quick.cpp ;
|
||||
run current_function_test2.cpp ;
|
||||
|
||||
run source_location_test.cpp
|
||||
: : : <warnings>extra <warnings-as-errors>on ;
|
||||
: : : <toolset>gcc-4.4.7:<warnings-as-errors>off ;
|
||||
run source_location_test2.cpp
|
||||
: : : <warnings>extra <warnings-as-errors>on ;
|
||||
: : : <toolset>gcc-4.4.7:<warnings-as-errors>off ;
|
||||
|
@ -43,6 +43,8 @@ void test_default_ndebug()
|
||||
BOOST_ASSERT_MSG( 0, "msg" );
|
||||
BOOST_ASSERT_MSG( !x, "msg" );
|
||||
BOOST_ASSERT_MSG( x == 0, "msg" );
|
||||
|
||||
(void)x;
|
||||
}
|
||||
|
||||
// BOOST_ENABLE_ASSERT_DEBUG_HANDLER, !NDEBUG
|
||||
@ -99,6 +101,8 @@ void test_debug_handler_ndebug()
|
||||
BOOST_ASSERT_MSG( x == 0, "msg" );
|
||||
|
||||
BOOST_TEST( handler_invoked == 0 );
|
||||
|
||||
(void)x;
|
||||
}
|
||||
|
||||
#undef BOOST_ENABLE_ASSERT_DEBUG_HANDLER
|
||||
|
@ -43,6 +43,8 @@ void test_default_ndebug()
|
||||
BOOST_ASSERT( 0 );
|
||||
BOOST_ASSERT( !x );
|
||||
BOOST_ASSERT( x == 0 );
|
||||
|
||||
(void)x;
|
||||
}
|
||||
|
||||
// BOOST_ENABLE_ASSERT_DEBUG_HANDLER, !NDEBUG
|
||||
@ -99,6 +101,8 @@ void test_debug_handler_ndebug()
|
||||
BOOST_ASSERT( x == 0 );
|
||||
|
||||
BOOST_TEST( handler_invoked == 0 );
|
||||
|
||||
(void)x;
|
||||
}
|
||||
|
||||
#undef BOOST_ENABLE_ASSERT_DEBUG_HANDLER
|
||||
|
Reference in New Issue
Block a user