Update Boost.StringRef tests to use newer Boost.Test features

[SVN r82825]
This commit is contained in:
Marshall Clow
2013-02-11 21:49:56 +00:00
parent 00d151828c
commit 05af0deaed
3 changed files with 17 additions and 14 deletions

View File

@ -12,7 +12,8 @@
#include <boost/utility/string_ref.hpp>
#include <boost/test/included/test_exec_monitor.hpp>
#define BOOST_TEST_MAIN
#include <boost/test/unit_test.hpp>
typedef boost::string_ref string_ref;
@ -240,7 +241,8 @@ const char *test_strings [] = {
NULL
};
int test_main( int , char* [] ) {
BOOST_AUTO_TEST_CASE( test_main )
{
const char **p = &test_strings[0];
while ( *p != NULL ) {
@ -251,6 +253,4 @@ int test_main( int , char* [] ) {
p++;
}
return 0;
}
}