Boost logo

Boost-Commit :

From: gennadiy.rozental_at_[hidden]
Date: 2007-10-24 20:02:14


Author: rogeeff
Date: 2007-10-24 20:02:14 EDT (Wed, 24 Oct 2007)
New Revision: 40448
URL: http://svn.boost.org/trac/boost/changeset/40448

Log:
avoid some msvc warning
Text files modified:
   trunk/libs/test/test/Jamfile.v2 | 10 +++++++++-
   trunk/libs/test/test/class_properties_test.cpp | 17 +++--------------
   2 files changed, 12 insertions(+), 15 deletions(-)

Modified: trunk/libs/test/test/Jamfile.v2
==============================================================================
--- trunk/libs/test/test/Jamfile.v2 (original)
+++ trunk/libs/test/test/Jamfile.v2 2007-10-24 20:02:14 EDT (Wed, 24 Oct 2007)
@@ -16,6 +16,7 @@
             : #<stlport-iostream>on
               <toolset>borland:<cxxflags>-w-8080
               <toolset>msvc-6.5:<link>static
+ <toolset>msvc-8.0:<define>_SCL_SECURE_NO_DEPRECATE
               <define>BOOST_TEST_NO_AUTO_LINK=1 # requirements
             : $(test-name)
           ] ;
@@ -23,7 +24,7 @@
 
 test-suite "basics_test"
         :
- [ test-btl-lib run : class_properties_test : boost_unit_test_framework/<link>static ]
+ [ test-btl-lib run : class_properties_test : boost_unit_test_framework ]
           [ test-btl-lib run : basic_cstring_test : boost_unit_test_framework/<link>static ]
         ;
 
@@ -55,6 +56,13 @@
           [ test-btl-lib run : test_tree_management_test : boost_unit_test_framework ]
             ;
 
+install common_location
+ : output_test_stream_test
+ : <install-dependencies>on
+ <install-type>LIB
+ <location>$(BOOST_ROOT)/stage
+ ;
+
 # A target that runs all the tests
 alias test : basics_test prg_exec_monitor_test unit_test_framework_test ;
   

Modified: trunk/libs/test/test/class_properties_test.cpp
==============================================================================
--- trunk/libs/test/test/class_properties_test.cpp (original)
+++ trunk/libs/test/test/class_properties_test.cpp 2007-10-24 20:02:14 EDT (Wed, 24 Oct 2007)
@@ -13,6 +13,7 @@
 // ***************************************************************************
 
 // Boost.Test
+#define BOOST_TEST_MODULE Class Properties test
 #include <boost/test/unit_test.hpp>
 #include <boost/test/utils/class_properties.hpp>
 
@@ -63,7 +64,7 @@
     }
 };
 
-void test_readonly_property()
+BOOST_AUTO_TEST_CASE( test_readonly_property )
 {
     readonly_property<int> p_zero;
     readonly_property<int> p_one( 1 );
@@ -149,7 +150,7 @@
 
 //____________________________________________________________________________//
 
-void test_readwrite_property()
+BOOST_AUTO_TEST_CASE( test_readwrite_property )
 {
     readwrite_property<int> p_int;
 
@@ -181,16 +182,4 @@
 
 //____________________________________________________________________________//
 
-test_suite*
-init_unit_test_suite( int /*argc*/, char* /*argv*/[] ) {
- test_suite* test= BOOST_TEST_SUITE("Class Properties test");
-
- test->add( BOOST_TEST_CASE( &test_readonly_property ) );
- test->add( BOOST_TEST_CASE( &test_readwrite_property ) );
-
- return test;
-}
-
-//____________________________________________________________________________//
-
 // EOF


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