Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57943 - trunk/libs/integer/test
From: john_at_[hidden]
Date: 2009-11-26 08:35:04


Author: johnmaddock
Date: 2009-11-26 08:35:03 EST (Thu, 26 Nov 2009)
New Revision: 57943
URL: http://svn.boost.org/trac/boost/changeset/57943

Log:
Oops, tests should return the error code is any.
Text files modified:
   trunk/libs/integer/test/cstdint_test.cpp | 2 +-
   trunk/libs/integer/test/integer_mask_test.cpp | 2 +-
   trunk/libs/integer/test/integer_test.cpp | 2 +-
   trunk/libs/integer/test/integer_traits_test.cpp | 2 +-
   trunk/libs/integer/test/static_log2_test.cpp | 2 +-
   trunk/libs/integer/test/static_min_max_test.cpp | 2 +-
   6 files changed, 6 insertions(+), 6 deletions(-)

Modified: trunk/libs/integer/test/cstdint_test.cpp
==============================================================================
--- trunk/libs/integer/test/cstdint_test.cpp (original)
+++ trunk/libs/integer/test/cstdint_test.cpp 2009-11-26 08:35:03 EST (Thu, 26 Nov 2009)
@@ -220,5 +220,5 @@
 
 
   std::cout << "OK\n";
- return 0;
+ return boost::report_errors();
 }

Modified: trunk/libs/integer/test/integer_mask_test.cpp
==============================================================================
--- trunk/libs/integer/test/integer_mask_test.cpp (original)
+++ trunk/libs/integer/test/integer_mask_test.cpp 2009-11-26 08:35:03 EST (Thu, 26 Nov 2009)
@@ -119,5 +119,5 @@
     PRIVATE_LOW_BITS_TEST( 2 );
     PRIVATE_LOW_BITS_TEST( 1 );
 
- return boost::exit_success;
+ return boost::report_errors();
 }

Modified: trunk/libs/integer/test/integer_test.cpp
==============================================================================
--- trunk/libs/integer/test/integer_test.cpp (original)
+++ trunk/libs/integer/test/integer_test.cpp 2009-11-26 08:35:03 EST (Thu, 26 Nov 2009)
@@ -247,5 +247,5 @@
       test_min_max_type<boost::int_min_value_t<_LLONG_MIN>, long long>(_LLONG_MIN);
       test_min_max_type<boost::uint_value_t<_ULLONG_MAX>, unsigned long long>(_ULLONG_MAX);
 #endif
- return 0;
+ return boost::report_errors();
 }

Modified: trunk/libs/integer/test/integer_traits_test.cpp
==============================================================================
--- trunk/libs/integer/test/integer_traits_test.cpp (original)
+++ trunk/libs/integer/test/integer_traits_test.cpp 2009-11-26 08:35:03 EST (Thu, 26 Nov 2009)
@@ -96,6 +96,6 @@
 #endif
   // Some compilers don't pay attention to std:3.6.1/5 and issue a
   // warning here if "return 0;" is omitted.
- return 0;
+ return boost::report_errors();
 }
 

Modified: trunk/libs/integer/test/static_log2_test.cpp
==============================================================================
--- trunk/libs/integer/test/static_log2_test.cpp (original)
+++ trunk/libs/integer/test/static_log2_test.cpp 2009-11-26 08:35:03 EST (Thu, 26 Nov 2009)
@@ -145,5 +145,5 @@
     PRIVATE_LB_TEST( 65536, 16 );
     PRIVATE_LB_TEST( 65537, 16 );
 
- return boost::exit_success;
+ return boost::report_errors();
 }

Modified: trunk/libs/integer/test/static_min_max_test.cpp
==============================================================================
--- trunk/libs/integer/test/static_min_max_test.cpp (original)
+++ trunk/libs/integer/test/static_min_max_test.cpp 2009-11-26 08:35:03 EST (Thu, 26 Nov 2009)
@@ -88,5 +88,5 @@
     BOOST_TEST( (static_signed_min< -101, -101>::value) == -101 );
     BOOST_TEST( (static_signed_max< -101, -101>::value) == -101 );
 
- return boost::exit_success;
+ return boost::report_errors();
 }


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