Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57388 - trunk/libs/units/test
From: steven_at_[hidden]
Date: 2009-11-04 18:11:13


Author: steven_watanabe
Date: 2009-11-04 18:11:13 EST (Wed, 04 Nov 2009)
New Revision: 57388
URL: http://svn.boost.org/trac/boost/changeset/57388

Log:
Make the tests more strict about warnings
Text files modified:
   trunk/libs/units/test/Jamfile.v2 | 18 ++++++++++++++++--
   1 files changed, 16 insertions(+), 2 deletions(-)

Modified: trunk/libs/units/test/Jamfile.v2
==============================================================================
--- trunk/libs/units/test/Jamfile.v2 (original)
+++ trunk/libs/units/test/Jamfile.v2 2009-11-04 18:11:13 EST (Wed, 04 Nov 2009)
@@ -7,13 +7,27 @@
 # accompanying file LICENSE_1_0.txt or copy at
 # http://www.boost.org/LICENSE_1_0.txt
 
+warning-options = <warnings>all <warnings-as-errors>on ;
+warning-compilers =
+ <toolset>msvc,<toolset-msvc:version>9.0express
+ <toolset>msvc,<toolset-msvc:version>8.0express
+;
+
 project boost/units/test :
- requirements <include>$(BOOST_ROOT) <include>../../.. <toolset>msvc:<asynch-exceptions>on
+ requirements
+ <source>/boost//headers
+ <include>../../..
+ <toolset>msvc:<asynch-exceptions>on
+ $(warning-compilers):$(warning-options)
+ # This warning comes from the test library. It appears
+ # to be a serious warning, but I'm disabling it here since its
+ # not my problem.
+ <toolset>msvc:<cxxflags>"/wd4701"
 ;
 
 import testing ;
 
-alias test_framework : $(BOOST_ROOT)/libs/test/build//boost_unit_test_framework ;
+alias test_framework : /boost//unit_test_framework/<warnings-as-errors>off ;
 
 compile test_predicates.cpp ;
 compile test_negative_denominator.cpp ;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk