Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82785 - in trunk/libs/algorithm: minmax/test string/test test
From: marshall_at_[hidden]
Date: 2013-02-08 12:21:48


Author: marshall
Date: 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
New Revision: 82785
URL: http://svn.boost.org/trac/boost/changeset/82785

Log:
Updated Boost.Algorithm tests to use non-deprecated test framework
Text files modified:
   trunk/libs/algorithm/minmax/test/Jamfile.v2 | 9 ++++-
   trunk/libs/algorithm/minmax/test/minmax_element_test.cpp | 9 ++--
   trunk/libs/algorithm/minmax/test/minmax_test.cpp | 8 ++--
   trunk/libs/algorithm/string/test/Jamfile.v2 | 23 ++++++++-----
   trunk/libs/algorithm/string/test/conv_test.cpp | 7 +--
   trunk/libs/algorithm/string/test/find_format_test.cpp | 7 +--
   trunk/libs/algorithm/string/test/find_test.cpp | 29 ++++++++--------
   trunk/libs/algorithm/string/test/join_test.cpp | 9 ++--
   trunk/libs/algorithm/string/test/predicate_test.cpp | 8 +--
   trunk/libs/algorithm/string/test/regex_test.cpp | 7 +--
   trunk/libs/algorithm/string/test/replace_test.cpp | 22 +++++-------
   trunk/libs/algorithm/string/test/split_test.cpp | 17 ++++++---
   trunk/libs/algorithm/string/test/trim_test.cpp | 8 +--
   trunk/libs/algorithm/test/Jamfile.v2 | 67 ++++++++++++++++++++++-----------------
   trunk/libs/algorithm/test/all_of_test.cpp | 7 ++-
   trunk/libs/algorithm/test/any_of_test.cpp | 7 ++-
   trunk/libs/algorithm/test/clamp_test.cpp | 6 +-
   trunk/libs/algorithm/test/copy_if_test1.cpp | 11 +++--
   trunk/libs/algorithm/test/copy_n_test1.cpp | 7 ++-
   trunk/libs/algorithm/test/empty_search_test.cpp | 8 +--
   trunk/libs/algorithm/test/find_if_not_test1.cpp | 7 ++-
   trunk/libs/algorithm/test/gather_fail1.cpp | 3 -
   trunk/libs/algorithm/test/gather_test1.cpp | 7 ++-
   trunk/libs/algorithm/test/hex_fail1.cpp | 4 +-
   trunk/libs/algorithm/test/hex_test1.cpp | 7 ++-
   trunk/libs/algorithm/test/hex_test2.cpp | 7 ++-
   trunk/libs/algorithm/test/hex_test3.cpp | 7 ++-
   trunk/libs/algorithm/test/hex_test4.cpp | 8 ++--
   trunk/libs/algorithm/test/iota_test1.cpp | 7 ++-
   trunk/libs/algorithm/test/is_partitioned_test1.cpp | 7 ++-
   trunk/libs/algorithm/test/is_permutation_test1.cpp | 7 ++-
   trunk/libs/algorithm/test/none_of_test.cpp | 7 ++-
   trunk/libs/algorithm/test/one_of_test.cpp | 7 ++-
   trunk/libs/algorithm/test/ordered_test.cpp | 7 ++-
   trunk/libs/algorithm/test/partition_copy_test1.cpp | 7 ++-
   trunk/libs/algorithm/test/partition_point_test1.cpp | 7 ++-
   trunk/libs/algorithm/test/search_fail1.cpp | 4 -
   trunk/libs/algorithm/test/search_fail2.cpp | 4 -
   trunk/libs/algorithm/test/search_fail3.cpp | 3 -
   trunk/libs/algorithm/test/search_test1.cpp | 6 +-
   trunk/libs/algorithm/test/search_test2.cpp | 9 ++--
   trunk/libs/algorithm/test/search_test3.cpp | 9 ++--
   trunk/libs/algorithm/test/search_test4.cpp | 9 ++--
   trunk/libs/algorithm/test/wrapper_test1.cpp | 7 ++-
   44 files changed, 229 insertions(+), 204 deletions(-)

Modified: trunk/libs/algorithm/minmax/test/Jamfile.v2
==============================================================================
--- trunk/libs/algorithm/minmax/test/Jamfile.v2 (original)
+++ trunk/libs/algorithm/minmax/test/Jamfile.v2 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,11 +9,16 @@
 
 import testing ;
 
+alias unit_test_framework
+ : # sources
+ /boost//unit_test_framework
+ ;
+
 {
   test-suite algorithm/minmax:
- : [ run minmax_element_test.cpp
+ : [ run minmax_element_test.cpp unit_test_framework
        : : : : minmax_element ]
- [ run minmax_test.cpp
+ [ run minmax_test.cpp unit_test_framework
        : : : : minmax ]
    ;
 }

Modified: trunk/libs/algorithm/minmax/test/minmax_element_test.cpp
==============================================================================
--- trunk/libs/algorithm/minmax/test/minmax_element_test.cpp (original)
+++ trunk/libs/algorithm/minmax/test/minmax_element_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -15,9 +15,11 @@
 
 #include <boost/config.hpp> /* prevents some nasty warns in MSVC */
 #include <boost/algorithm/minmax_element.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
 #include <boost/iterator/reverse_iterator.hpp>
 
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
+
 class custom {
   int m_x;
   friend bool operator<(custom const& x, custom const& y);
@@ -225,17 +227,14 @@
   test_range(first, last, n);
 }
 
-int test_main( int argc, char* argv[] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
 #ifndef BOOST_NO_STDC_NAMESPACE
   using std::atoi;
 #endif
 
   int n = 100;
- if (argc > 1) n = atoi(argv[1]);
 
   test<int>(n);
   test<custom>(n);
-
- return 0;
 }

Modified: trunk/libs/algorithm/minmax/test/minmax_test.cpp
==============================================================================
--- trunk/libs/algorithm/minmax/test/minmax_test.cpp (original)
+++ trunk/libs/algorithm/minmax/test/minmax_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -8,7 +8,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/minmax.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 class custom {
   int m_x;
@@ -76,10 +78,8 @@
   BOOST_CHECK_EQUAL( counter, 1);
 }
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test<int>(); // ("builtin");
   test<custom>(); // ("custom ");
-
- return 0;
 }

Modified: trunk/libs/algorithm/string/test/Jamfile.v2
==============================================================================
--- trunk/libs/algorithm/string/test/Jamfile.v2 (original)
+++ trunk/libs/algorithm/string/test/Jamfile.v2 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,58 +9,63 @@
 
 import testing ;
 
+alias unit_test_framework
+ : # sources
+ /boost//unit_test_framework
+ ;
+
 test-suite algorithm/string
     : [ run
- trim_test.cpp
+ trim_test.cpp unit_test_framework
           : :
             :
             : trim
         ]
       [ run
- conv_test.cpp
+ conv_test.cpp unit_test_framework
           : :
             :
             : conv
         ]
       [ run
- predicate_test.cpp
+ predicate_test.cpp unit_test_framework
           : :
             :
             : predicate
         ]
       [ run
- find_test.cpp
+ find_test.cpp unit_test_framework
           : :
             :
             : find
         ]
       [ run
- split_test.cpp
+ split_test.cpp unit_test_framework
           : :
             :
             : split
         ]
       [ run
- join_test.cpp
+ join_test.cpp unit_test_framework
           : :
             :
             : join
         ]
       [ run
- replace_test.cpp
+ replace_test.cpp unit_test_framework
           : :
             :
             : replace
         ]
       [ run
- regex_test.cpp
+ regex_test.cpp unit_test_framework
             ../../../regex/build//boost_regex
           : :
             :
             : regex
         ]
       [ run
- find_format_test.cpp
+ find_format_test.cpp unit_test_framework
           : :
             :
             : find_format

Modified: trunk/libs/algorithm/string/test/conv_test.cpp
==============================================================================
--- trunk/libs/algorithm/string/test/conv_test.cpp (original)
+++ trunk/libs/algorithm/string/test/conv_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -10,7 +10,8 @@
 #include <boost/algorithm/string/case_conv.hpp>
 
 // Include unit test framework
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <iostream>
@@ -87,9 +88,7 @@
 }
 
 // test main
-int test_main( int, char*[] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     conv_test();
-
- return 0;
 }

Modified: trunk/libs/algorithm/string/test/find_format_test.cpp
==============================================================================
--- trunk/libs/algorithm/string/test/find_format_test.cpp (original)
+++ trunk/libs/algorithm/string/test/find_format_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -12,7 +12,8 @@
 #include <boost/algorithm/string/formatter.hpp>
 
 // Include unit test framework
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <boost/test/test_tools.hpp>
 
@@ -154,10 +155,8 @@
     BOOST_CHECK_EQUAL(output, source);
 }
 
-int test_main( int, char*[] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     find_format_test();
     find_format_all_test();
-
- return 0;
 }

Modified: trunk/libs/algorithm/string/test/find_test.cpp
==============================================================================
--- trunk/libs/algorithm/string/test/find_test.cpp (original)
+++ trunk/libs/algorithm/string/test/find_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -12,7 +12,8 @@
 #include <boost/algorithm/string/split.hpp>
 
 // Include unit test framework
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
@@ -45,7 +46,7 @@
 
 
     // find_first
- BOOST_CHECKPOINT( "find_first" );
+ BOOST_TEST_CHECKPOINT( "find_first" );
 
     nc_result=find_first( str1, string("abc") );
     BOOST_CHECK(
@@ -66,7 +67,7 @@
     BOOST_CHECK(( (ch_result.begin() - pch1 ) == 3) && ( (ch_result.end() - pch1 ) == 6 ) );
 
     // find_last
- BOOST_CHECKPOINT( "find_last" );
+ BOOST_TEST_CHECKPOINT( "find_last" );
     
     nc_result=find_last( str1, string("abc") );
     BOOST_CHECK(
@@ -87,7 +88,7 @@
     BOOST_CHECK(( (ch_result.begin() - pch1 ) == 15) && ( (ch_result.end() - pch1 ) == 18 ) );
 
     // find_nth
- BOOST_CHECKPOINT( "find_nth" );
+ BOOST_TEST_CHECKPOINT( "find_nth" );
 
     nc_result=find_nth( str1, string("abc"), 1 );
     BOOST_CHECK(
@@ -125,7 +126,7 @@
     BOOST_CHECK(( (ch_result.begin() - pch1 ) == 9) && ( (ch_result.end() - pch1 ) == 12 ) );
 
     // find_head
- BOOST_CHECKPOINT( "find_head" );
+ BOOST_TEST_CHECKPOINT( "find_head" );
 
     nc_result=find_head( str1, 6 );
     BOOST_CHECK(
@@ -146,7 +147,7 @@
     BOOST_CHECK( ( (ch_result.begin() - pch1 ) == 0 ) && ( (ch_result.end() - pch1 ) == 6 ) );
 
     // find_tail
- BOOST_CHECKPOINT( "find_tail" );
+ BOOST_TEST_CHECKPOINT( "find_tail" );
 
     nc_result=find_tail( str1, 6 );
     BOOST_CHECK(
@@ -168,7 +169,7 @@
     BOOST_CHECK( ( (ch_result.begin() - pch1 ) == 15 ) && ( (ch_result.end() - pch1 ) == 21 ) );
 
     // find_token
- BOOST_CHECKPOINT( "find_token" );
+ BOOST_TEST_CHECKPOINT( "find_token" );
 
     nc_result=find_token( str1, is_any_of("abc"), token_compress_on );
     BOOST_CHECK(
@@ -194,7 +195,7 @@
     BOOST_CHECK( ( (ch_result.begin() - pch1 ) == 3 ) && ( (ch_result.end() - pch1 ) == 4 ) );
 
     // generic find
- BOOST_CHECKPOINT( "generic find" );
+ BOOST_TEST_CHECKPOINT( "generic find" );
 
     nc_result=find(str1, first_finder(string("abc")));
     BOOST_CHECK(
@@ -207,7 +208,7 @@
         ( (cv_result.end()-str1.begin()) == 6) );
 
     // multi-type comparison test
- BOOST_CHECKPOINT( "multi-type" );
+ BOOST_TEST_CHECKPOINT( "multi-type" );
 
     nc_vresult=find_first( vec1, string("abc") );
     BOOST_CHECK(
@@ -220,7 +221,7 @@
         ( (cv_result.end()-str1.begin()) == 6) );
 
     // overflow test
- BOOST_CHECKPOINT( "overflow" );
+ BOOST_TEST_CHECKPOINT( "overflow" );
     
     nc_result=find_first( str2, string("abcd") );
     BOOST_CHECK( nc_result.begin()==nc_result.end() );
@@ -233,7 +234,7 @@
     BOOST_CHECK( string( cv_result.begin(), cv_result.end() )== string("abc") );
 
     // Empty string test
- BOOST_CHECKPOINT( "empty" );
+ BOOST_TEST_CHECKPOINT( "empty" );
     
     nc_result=find_first( str3, string("abcd") );
     BOOST_CHECK( nc_result.begin()==nc_result.end() );
@@ -251,7 +252,7 @@
     BOOST_CHECK( osstr.str()=="abc" );
 
     // Empty string test
- BOOST_CHECKPOINT( "overlapping" );
+ BOOST_TEST_CHECKPOINT( "overlapping" );
     
     std::string overlap_target("aaaa");
     std::vector<boost::iterator_range<std::string::iterator> > overlap_results;
@@ -266,9 +267,7 @@
 }
 
 // test main
-int test_main( int, char*[] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     find_test();
-
- return 0;
 }

Modified: trunk/libs/algorithm/string/test/join_test.cpp
==============================================================================
--- trunk/libs/algorithm/string/test/join_test.cpp (original)
+++ trunk/libs/algorithm/string/test/join_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -13,7 +13,8 @@
 #include <boost/algorithm/string/predicate.hpp>
 
 // Include unit test framework
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
@@ -70,10 +71,8 @@
     BOOST_CHECK( equals(join_if(tokens3, "-", is_not_empty), "") );
 }
 
-// test main
-int test_main( int, char*[] )
+
+BOOST_AUTO_TEST_CASE( test_main )
 {
     join_test();
-
- return 0;
 }

Modified: trunk/libs/algorithm/string/test/predicate_test.cpp
==============================================================================
--- trunk/libs/algorithm/string/test/predicate_test.cpp (original)
+++ trunk/libs/algorithm/string/test/predicate_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,8 @@
 #include <boost/algorithm/string/classification.hpp>
 
 // Include unit test framework
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
@@ -152,11 +153,8 @@
 
 #undef TEST_CLASS
 
-// test main
-int test_main( int, char*[] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     predicate_test();
     classification_test();
-
- return 0;
 }

Modified: trunk/libs/algorithm/string/test/regex_test.cpp
==============================================================================
--- trunk/libs/algorithm/string/test/regex_test.cpp (original)
+++ trunk/libs/algorithm/string/test/regex_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -15,7 +15,8 @@
 
 
 // Include unit test framework
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
@@ -149,11 +150,9 @@
     BOOST_CHECK( str1==string("123AxXxCa23ca456c321") );
 }
 
-int test_main( int, char*[] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     find_test();
     join_test();
     replace_test();
-
- return 0;
 }

Modified: trunk/libs/algorithm/string/test/replace_test.cpp
==============================================================================
--- trunk/libs/algorithm/string/test/replace_test.cpp (original)
+++ trunk/libs/algorithm/string/test/replace_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -16,7 +16,8 @@
 #include <boost/algorithm/string/classification.hpp>
 
 // Include unit test framework
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
@@ -56,14 +57,14 @@
 #define C_ ,
 #define TEST_ALGO( Algo, Input, Params, Output ) \
 {\
- BOOST_CHECKPOINT( #Algo " - Copy" );\
+ BOOST_TEST_CHECKPOINT( #Algo " - Copy" );\
 \
     string str1(Input);\
 \
     /* Copy test */ \
     BOOST_CHECK( Algo##_copy( str1, Params )==Output );\
 \
- BOOST_CHECKPOINT( #Algo " - Iterator" );\
+ BOOST_TEST_CHECKPOINT( #Algo " - Iterator" );\
     /* Iterator test */\
     string strout;\
     Algo##_copy( back_inserter(strout), str1, Params );\
@@ -73,15 +74,15 @@
     vector<char> vec1( str1.begin(), str1.end() );\
     list<char> list1( str1.begin(), str1.end() );\
 \
- BOOST_CHECKPOINT( #Algo " - Inplace(string)" );\
+ BOOST_TEST_CHECKPOINT( #Algo " - Inplace(string)" );\
     Algo( str1, Params ); \
     BOOST_CHECK( equals( str1, Output ) ); \
 \
- BOOST_CHECKPOINT( #Algo " - Inplace(vector)" );\
+ BOOST_TEST_CHECKPOINT( #Algo " - Inplace(vector)" );\
     Algo( vec1, Params ); \
     BOOST_CHECK( equals( vec1, Output ) );\
 \
- BOOST_CHECKPOINT( #Algo " - Inplace(list)" );\
+ BOOST_TEST_CHECKPOINT( #Algo " - Inplace(list)" );\
     Algo( list1, Params ); \
     BOOST_CHECK( equals( list1, Output ) );\
 }
@@ -206,7 +207,7 @@
 {
     // replace_range
     {
- BOOST_CHECKPOINT( "replace_range" );
+ BOOST_TEST_CHECKPOINT( "replace_range" );
 
         string str1("1abc3abc2");
         BOOST_CHECK(
@@ -231,7 +232,7 @@
     }
     // erase_range
     {
- BOOST_CHECKPOINT( "erase_range" );
+ BOOST_TEST_CHECKPOINT( "erase_range" );
 
         string str1("1abc3abc2");
         BOOST_CHECK(
@@ -305,8 +306,7 @@
 
 }
 
-// test main
-int test_main( int, char*[] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     sequence_traits_test();
     replace_first_test();
@@ -318,6 +318,4 @@
     replace_range_test();
     collection_comp_test();
     dissect_format_test();
-
- return 0;
 }

Modified: trunk/libs/algorithm/string/test/split_test.cpp
==============================================================================
--- trunk/libs/algorithm/string/test/split_test.cpp (original)
+++ trunk/libs/algorithm/string/test/split_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -13,10 +13,12 @@
 #include <boost/algorithm/string/predicate.hpp>
 
 // Include unit test framework
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
+#include <list>
 #include <iostream>
 
 #include <boost/test/test_tools.hpp>
@@ -44,7 +46,7 @@
     const char* pch1="xx-abc--xx-abb";
     vector<string> tokens;
     vector< vector<int> > vtokens;
-
+
     // find_all tests
     find_all(
         tokens,
@@ -179,12 +181,15 @@
     BOOST_CHECK(siter==split_iterator<string::iterator>(siter));
     BOOST_CHECK(siter==split_iterator<string::iterator>());
 
+#if 0
+// Make sure we work with forward iterators
+// See bug #7989
+ list<char> l1;
+ find_iterator<list<char>::iterator> liter=make_find_iterator(l1, first_finder("xx"));
+#endif
 }
 
-// test main
-int test_main( int, char*[] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     iterator_test();
-
- return 0;
 }

Modified: trunk/libs/algorithm/string/test/trim_test.cpp
==============================================================================
--- trunk/libs/algorithm/string/test/trim_test.cpp (original)
+++ trunk/libs/algorithm/string/test/trim_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,8 @@
 #include <boost/algorithm/string/trim_all.hpp>
 
 // Include unit test framework
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <iostream>
@@ -193,12 +194,9 @@
     BOOST_CHECK( trim_fill_copy_if( string("<>abc<>def<>"), "-", is_any_of( "<<>>" ) )=="abc-def" );
 }
 
-// test main
-int test_main( int, char*[] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     trim_test();
     trim_all_test();
     trim_fill_test();
-
- return 0;
 }

Modified: trunk/libs/algorithm/test/Jamfile.v2
==============================================================================
--- trunk/libs/algorithm/test/Jamfile.v2 (original)
+++ trunk/libs/algorithm/test/Jamfile.v2 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,51 +9,60 @@
 
 import testing ;
 
+alias unit_test_framework
+ : # sources
+ /boost//unit_test_framework
+ ;
+
+
 {
   test-suite algorithm:
 # Search tests
- : [ run empty_search_test.cpp : : : : empty_search_test ]
- [ run search_test1.cpp : : : : search_test1 ]
- [ run search_test2.cpp : : : : search_test2 ]
- [ run search_test3.cpp : : : : search_test3 ]
- [ run search_test4.cpp : : : : search_test4 ]
- [ compile-fail search_fail1.cpp : : : : ]
- [ compile-fail search_fail2.cpp : : : : ]
- [ compile-fail search_fail3.cpp : : : : ]
+ : [ run empty_search_test.cpp unit_test_framework : : : : empty_search_test ]
+ [ run search_test1.cpp unit_test_framework : : : : search_test1 ]
+ [ run search_test2.cpp unit_test_framework : : : : search_test2 ]
+ [ run search_test3.cpp unit_test_framework : : : : search_test3 ]
+ [ run search_test4.cpp unit_test_framework : : : : search_test4 ]
+ [ compile-fail search_fail1.cpp : : : : ]
+ [ compile-fail search_fail2.cpp : : : : ]
+ [ compile-fail search_fail3.cpp : : : : ]
 
 # Clamp tests
- [ run clamp_test.cpp : : : : clamp_test ]
+ [ run clamp_test.cpp unit_test_framework : : : : clamp_test ]
    
 # Cxx11 tests
- [ run all_of_test.cpp : : : : all_of_test ]
- [ run any_of_test.cpp : : : : any_of_test ]
- [ run none_of_test.cpp : : : : none_of_test ]
- [ run one_of_test.cpp : : : : one_of_test ]
+ [ run all_of_test.cpp unit_test_framework : : : : all_of_test ]
+ [ run any_of_test.cpp unit_test_framework : : : : any_of_test ]
+ [ run none_of_test.cpp unit_test_framework : : : : none_of_test ]
+ [ run one_of_test.cpp unit_test_framework : : : : one_of_test ]
      
- [ run ordered_test.cpp : : : : ordered_test ]
- [ run find_if_not_test1.cpp : : : : find_if_not_test1 ]
- [ run copy_if_test1.cpp : : : : copy_if_test1 ]
- [ run copy_n_test1.cpp : : : : copy_n_test1 ]
- [ run iota_test1.cpp : : : : iota_test1 ]
-
- [ run is_permutation_test1.cpp : : : : is_permutation_test1 ]
- [ run partition_point_test1.cpp : : : : partition_point_test1 ]
- [ run is_partitioned_test1.cpp : : : : is_partitioned_test1 ]
- [ run partition_copy_test1.cpp : : : : partition_copy_test1 ]
+ [ run ordered_test.cpp unit_test_framework : : : : ordered_test ]
+ [ run find_if_not_test1.cpp unit_test_framework : : : : find_if_not_test1 ]
+ [ run copy_if_test1.cpp unit_test_framework : : : : copy_if_test1 ]
+ [ run copy_n_test1.cpp unit_test_framework : : : : copy_n_test1 ]
+ [ run iota_test1.cpp unit_test_framework : : : : iota_test1 ]
+
+ [ run is_permutation_test1.cpp unit_test_framework : : : : is_permutation_test1 ]
+ [ run partition_point_test1.cpp unit_test_framework : : : : partition_point_test1 ]
+ [ run is_partitioned_test1.cpp unit_test_framework : : : : is_partitioned_test1 ]
+ [ run partition_copy_test1.cpp unit_test_framework : : : : partition_copy_test1 ]
 
 # Hex tests
- [ run hex_test1.cpp : : : : hex_test1 ]
- [ run hex_test2.cpp : : : : hex_test2 ]
- [ run hex_test3.cpp : : : : hex_test3 ]
- [ run hex_test4.cpp : : : : hex_test4 ]
+ [ run hex_test1.cpp unit_test_framework : : : : hex_test1 ]
+ [ run hex_test2.cpp unit_test_framework : : : : hex_test2 ]
+ [ run hex_test3.cpp unit_test_framework : : : : hex_test3 ]
+ [ run hex_test4.cpp unit_test_framework : : : : hex_test4 ]
      [ compile-fail hex_fail1.cpp ]
 
 # Wrapper tests
- [ run wrapper_test1.cpp : : : : wrapper_test1 ]
+ [ run wrapper_test1.cpp unit_test_framework : : : : wrapper_test1 ]
 
 # Gather tests
- [ run gather_test1.cpp : : : : gather_test1 ]
+ [ run gather_test1.cpp unit_test_framework : : : : gather_test1 ]
      [ compile-fail gather_fail1.cpp ]
+
+# Dummy test
+ [ run dummy_test.cpp unit_test_framework : : : : dummy_test ]
    ;
 }
 

Modified: trunk/libs/algorithm/test/all_of_test.cpp
==============================================================================
--- trunk/libs/algorithm/test/all_of_test.cpp (original)
+++ trunk/libs/algorithm/test/all_of_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,7 +9,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/all_of.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <functional>
 #include <vector>
@@ -79,8 +81,7 @@
 }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_all ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/any_of_test.cpp
==============================================================================
--- trunk/libs/algorithm/test/any_of_test.cpp (original)
+++ trunk/libs/algorithm/test/any_of_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,7 +9,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/any_of.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <functional>
 #include <vector>
@@ -98,8 +100,7 @@
 }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_any ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/clamp_test.cpp
==============================================================================
--- trunk/libs/algorithm/test/clamp_test.cpp (original)
+++ trunk/libs/algorithm/test/clamp_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,7 +9,8 @@
 #include <boost/config.hpp>
 #include <boost/algorithm/clamp.hpp>
 
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 namespace ba = boost::algorithm;
 
@@ -205,7 +206,7 @@
     BOOST_CHECK ( std::equal ( b_e(junk), outputs ));
 }
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     test_ints ();
     test_floats ();
@@ -214,5 +215,4 @@
     test_int_range ();
 // test_float_range ();
 // test_custom_range ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/copy_if_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/copy_if_test1.cpp (original)
+++ trunk/libs/algorithm/test/copy_if_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,7 +9,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/copy_if.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <algorithm>
 #include <string>
@@ -57,12 +59,12 @@
 // Some of the elements
     v.clear ();
     ba::copy_if ( c.begin (), c.end (), back_inserter ( v ), is_even );
- BOOST_CHECK ( v.size () == std::count_if ( c.begin (), c.end (), is_even ));
+ BOOST_CHECK ( v.size () == (size_t) std::count_if ( c.begin (), c.end (), is_even ));
     BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even ));
 
     v.clear ();
     ba::copy_if ( c, back_inserter ( v ), is_even );
- BOOST_CHECK ( v.size () == std::count_if ( c.begin (), c.end (), is_even ));
+ BOOST_CHECK ( v.size () == (size_t) std::count_if ( c.begin (), c.end (), is_even ));
     BOOST_CHECK ( ba::all_of ( v.begin (), v.end (), is_even ));
     }
 
@@ -80,8 +82,7 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_sequence1 ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/copy_n_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/copy_n_test1.cpp (original)
+++ trunk/libs/algorithm/test/copy_n_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,7 +9,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/copy_n.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <iostream>
@@ -78,8 +80,7 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_sequence1 ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/empty_search_test.cpp
==============================================================================
--- trunk/libs/algorithm/test/empty_search_test.cpp (original)
+++ trunk/libs/algorithm/test/empty_search_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -13,9 +13,10 @@
 #include <boost/algorithm/searching/boyer_moore_horspool.hpp>
 #include <boost/algorithm/searching/knuth_morris_pratt.hpp>
 
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
-int test_main( int argc, char *argv [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     const std::string cs;
     std::string estr;
@@ -77,7 +78,4 @@
             str.begin (), str.end (), estr.begin (), estr.end ())
         == str.begin ()
         );
-
- (void) argv; (void) argc;
- return 0;
 }

Modified: trunk/libs/algorithm/test/find_if_not_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/find_if_not_test1.cpp (original)
+++ trunk/libs/algorithm/test/find_if_not_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/find_if_not.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
@@ -83,8 +85,7 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_sequence1 ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/gather_fail1.cpp
==============================================================================
--- trunk/libs/algorithm/test/gather_fail1.cpp (original)
+++ trunk/libs/algorithm/test/gather_fail1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,6 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/gather.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
 
 #include <string>
 #include <vector>
@@ -32,7 +31,7 @@
     }
 
 
-int test_main( int , char* [] )
+int main ()
 {
   test_sequence1 ();
   return 0;

Modified: trunk/libs/algorithm/test/gather_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/gather_test1.cpp (original)
+++ trunk/libs/algorithm/test/gather_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/gather.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
@@ -132,8 +134,7 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_sequence1 ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/hex_fail1.cpp
==============================================================================
--- trunk/libs/algorithm/test/hex_fail1.cpp (original)
+++ trunk/libs/algorithm/test/hex_fail1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,17 +9,17 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/hex.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
 
 #include <string>
 #include <iostream>
 #include <vector>
 
 // should not compile: vector is not an integral type
-int test_main( int , char* [] )
+int main( int , char* [] )
 {
   std::vector<float> v;
   std::string out;
   boost::algorithm::unhex ( out, std::back_inserter(v));
+
   return 0;
 }

Modified: trunk/libs/algorithm/test/hex_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/hex_test1.cpp (original)
+++ trunk/libs/algorithm/test/hex_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,7 +9,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/hex.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <iostream>
@@ -141,7 +143,7 @@
     };
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_to_hex<std::string> ( tohex );
   test_from_hex_success<std::string> ( fromhex );
@@ -150,5 +152,4 @@
   test_to_hex<std::wstring> ( tohex_w );
   test_from_hex_success<std::wstring> ( fromhex_w );
   test_from_hex_failure<std::wstring> ( fromhex_fail_w );
- return 0;
 }

Modified: trunk/libs/algorithm/test/hex_test2.cpp
==============================================================================
--- trunk/libs/algorithm/test/hex_test2.cpp (original)
+++ trunk/libs/algorithm/test/hex_test2.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/hex.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <iostream>
@@ -129,9 +131,8 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_to_hex ();
   test_from_hex_success ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/hex_test3.cpp
==============================================================================
--- trunk/libs/algorithm/test/hex_test3.cpp (original)
+++ trunk/libs/algorithm/test/hex_test3.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/hex.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <iostream>
@@ -113,11 +115,10 @@
 
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_to_hex ( tohex );
   test_to_hex ( tohex_w );
   test_from_hex_success ( fromhex );
   test_from_hex_success ( fromhex_w );
- return 0;
 }

Modified: trunk/libs/algorithm/test/hex_test4.cpp
==============================================================================
--- trunk/libs/algorithm/test/hex_test4.cpp (original)
+++ trunk/libs/algorithm/test/hex_test4.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/hex.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <iostream>
@@ -136,10 +138,8 @@
     test_nonhex_input4 ();
     }
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     test_short_input ();
     test_nonhex_input ();
-
- return 0;
 }

Modified: trunk/libs/algorithm/test/iota_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/iota_test1.cpp (original)
+++ trunk/libs/algorithm/test/iota_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,7 +9,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/iota.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <iostream>
 #include <string>
@@ -72,8 +74,7 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_ints ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/is_partitioned_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/is_partitioned_test1.cpp (original)
+++ trunk/libs/algorithm/test/is_partitioned_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/is_partitioned.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
@@ -56,8 +58,7 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_sequence1 ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/is_permutation_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/is_permutation_test1.cpp (original)
+++ trunk/libs/algorithm/test/is_permutation_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/is_permutation.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
@@ -42,8 +44,7 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_sequence1 ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/none_of_test.cpp
==============================================================================
--- trunk/libs/algorithm/test/none_of_test.cpp (original)
+++ trunk/libs/algorithm/test/none_of_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,7 +9,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/none_of.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <functional>
 #include <vector>
@@ -89,8 +91,7 @@
     BOOST_CHECK (!ba::none_of ( li.begin(), l_iter, is_<int> ( 5 )));
 }
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_none();
- return 0;
 }

Modified: trunk/libs/algorithm/test/one_of_test.cpp
==============================================================================
--- trunk/libs/algorithm/test/one_of_test.cpp (original)
+++ trunk/libs/algorithm/test/one_of_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,7 +9,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/one_of.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <functional>
 #include <vector>
@@ -94,8 +96,7 @@
 }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_one ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/ordered_test.cpp
==============================================================================
--- trunk/libs/algorithm/test/ordered_test.cpp (original)
+++ trunk/libs/algorithm/test/ordered_test.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -13,7 +13,9 @@
 #include <iostream>
 
 #include <boost/algorithm/cxx11/is_sorted.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 using namespace boost;
 
@@ -146,9 +148,8 @@
     
 }
 
-int test_main( int, char * [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     test_ordered ();
     test_increasing_decreasing ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/partition_copy_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/partition_copy_test1.cpp (original)
+++ trunk/libs/algorithm/test/partition_copy_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/partition_copy.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <boost/algorithm/cxx11/all_of.hpp>
 #include <boost/algorithm/cxx11/none_of.hpp>
@@ -80,8 +82,7 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_sequence1 ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/partition_point_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/partition_point_test1.cpp (original)
+++ trunk/libs/algorithm/test/partition_point_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/cxx11/partition_point.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <string>
 #include <vector>
@@ -91,8 +93,7 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_sequence1 ();
- return 0;
 }

Modified: trunk/libs/algorithm/test/search_fail1.cpp
==============================================================================
--- trunk/libs/algorithm/test/search_fail1.cpp (original)
+++ trunk/libs/algorithm/test/search_fail1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -10,7 +10,7 @@
 #include <vector>
 #include <boost/algorithm/searching/boyer_moore.hpp>
 
-int main( int argc, char *argv [] )
+int main( int , char* [] )
 {
     std::vector<char> cv;
     std::vector<int> iv;
@@ -20,7 +20,5 @@
     (void) boost::algorithm::boyer_moore_search (
         cv.begin (), cv.end (), iv.begin (), iv.end ());
 
-
- (void) argv; (void) argc;
    return 0;
 }

Modified: trunk/libs/algorithm/test/search_fail2.cpp
==============================================================================
--- trunk/libs/algorithm/test/search_fail2.cpp (original)
+++ trunk/libs/algorithm/test/search_fail2.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,7 @@
 #include <boost/cstdint.hpp>
 #include <boost/algorithm/searching/boyer_moore.hpp>
 
-int main( int argc, char *argv [] )
+int main( int , char* [] )
 {
     std::vector<boost::uint8_t> cv;
     std::vector<boost:: int8_t> iv;
@@ -21,7 +21,5 @@
     (void) boost::algorithm::boyer_moore_search (
         cv.begin (), cv.end (), iv.begin (), iv.end ());
 
-
- (void) argv; (void) argc;
    return 0;
 }

Modified: trunk/libs/algorithm/test/search_fail3.cpp
==============================================================================
--- trunk/libs/algorithm/test/search_fail3.cpp (original)
+++ trunk/libs/algorithm/test/search_fail3.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -10,11 +10,10 @@
 #include <vector>
 #include <boost/algorithm/searching/boyer_moore.hpp>
 
-int main( int argc, char *argv [] )
+int main( int , char* [] )
 {
 // Should fail to compile because the search objects are not default-constructible
     boost::algorithm::boyer_moore<std::vector<char>::iterator> bm;
    
- (void) argv; (void) argc;
    return 0;
 }

Modified: trunk/libs/algorithm/test/search_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/search_test1.cpp (original)
+++ trunk/libs/algorithm/test/search_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,7 +11,8 @@
 #include <boost/algorithm/searching/boyer_moore_horspool.hpp>
 #include <boost/algorithm/searching/knuth_morris_pratt.hpp>
 
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <iostream>
 #include <string>
@@ -218,7 +219,7 @@
     }
 
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     std::string haystack1 ( "NOW AN FOWE\220ER ANNMAN THE ANPANMANEND" );
     std::string needle1 ( "ANPANMAN" );
@@ -268,5 +269,4 @@
     const std::string mikhail_corpus = std::string (8, 'a') + mikhail_pattern;
 
     check_one ( mikhail_corpus, mikhail_pattern, 8 );
- return 0;
     }

Modified: trunk/libs/algorithm/test/search_test2.cpp
==============================================================================
--- trunk/libs/algorithm/test/search_test2.cpp (original)
+++ trunk/libs/algorithm/test/search_test2.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,9 +11,12 @@
 #include <boost/algorithm/searching/boyer_moore_horspool.hpp>
 #include <boost/algorithm/searching/knuth_morris_pratt.hpp>
 
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <iostream>
+#include <fstream>
+#include <iomanip>
 #include <algorithm>
 #include <vector>
 
@@ -122,7 +125,7 @@
         }
     }
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     vec c1 = ReadFromFile ( "search_test_data/0001.corpus" );
     vec p1b = ReadFromFile ( "search_test_data/0001b.pat" );
@@ -140,6 +143,4 @@
     check_one ( c1, p1e, c1.size() - p1e.size ());
     std::cout << "--- Not found ---" << std::endl;
     check_one ( c1, p1n, -1 ); // Not found
-
- return 0;
     }

Modified: trunk/libs/algorithm/test/search_test3.cpp
==============================================================================
--- trunk/libs/algorithm/test/search_test3.cpp (original)
+++ trunk/libs/algorithm/test/search_test3.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -11,9 +11,12 @@
 #include <boost/algorithm/searching/boyer_moore_horspool.hpp>
 #include <boost/algorithm/searching/knuth_morris_pratt.hpp>
 
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <iostream>
+#include <fstream>
+#include <iomanip>
 #include <algorithm>
 #include <vector>
 #include <string>
@@ -122,7 +125,7 @@
         }
     }
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     vec c1 = ReadFromFile ( "search_test_data/0001.corpus" );
     vec p1b = ReadFromFile ( "search_test_data/0002b.pat" );
@@ -140,6 +143,4 @@
     check_one ( c1, p1e, c1.size() - p1e.size ());
     std::cout << "--- Not found ---" << std::endl;
     check_one ( c1, p1n, -1 ); // Not found
-
- return 0;
     }

Modified: trunk/libs/algorithm/test/search_test4.cpp
==============================================================================
--- trunk/libs/algorithm/test/search_test4.cpp (original)
+++ trunk/libs/algorithm/test/search_test4.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -13,9 +13,12 @@
 #include <boost/algorithm/searching/boyer_moore_horspool.hpp>
 #include <boost/algorithm/searching/knuth_morris_pratt.hpp>
 
-#include <boost/test/included/test_exec_monitor.hpp>
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <iostream>
+#include <fstream>
+#include <iomanip>
 #include <algorithm>
 #include <vector>
 #include <string>
@@ -93,7 +96,7 @@
         
     }
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
     vec c1 = ReadFromFile ( "search_test_data/0001.corpus" );
     vec p1b = ReadFromFile ( "search_test_data/0002b.pat" );
@@ -111,6 +114,4 @@
     check_one ( c1, p1e, c1.size() - p1e.size ());
     std::cout << "--- Not found ---" << std::endl;
     check_one ( c1, p1n, -1 ); // Not found
-
- return 0;
     }

Modified: trunk/libs/algorithm/test/wrapper_test1.cpp
==============================================================================
--- trunk/libs/algorithm/test/wrapper_test1.cpp (original)
+++ trunk/libs/algorithm/test/wrapper_test1.cpp 2013-02-08 12:21:43 EST (Fri, 08 Feb 2013)
@@ -9,7 +9,9 @@
 
 #include <boost/config.hpp>
 #include <boost/algorithm/wrappers.hpp>
-#include <boost/test/included/test_exec_monitor.hpp>
+
+#define BOOST_TEST_MAIN
+#include <boost/test/unit_test.hpp>
 
 #include <functional>
 #include <string>
@@ -67,9 +69,8 @@
     BOOST_CHECK ( ba::find_ptr ( mm, 55 ) == NULL );
 }
 
-int test_main( int , char* [] )
+BOOST_AUTO_TEST_CASE( test_main )
 {
   test_int ();
   test_str ();
- return 0;
 }


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