forked from boostorg/bind
Switched to <boost/detail/lightweight_test.hpp> for testing.
[SVN r14932]
This commit is contained in:
@@ -30,9 +30,7 @@
|
|||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
#define BOOST_INCLUDE_MAIN
|
|
||||||
#include <boost/test/test_tools.hpp>
|
|
||||||
|
|
||||||
struct X
|
struct X
|
||||||
{
|
{
|
||||||
@@ -158,8 +156,8 @@ void member_function_test()
|
|||||||
BOOST_TEST( x.hash == 23558 );
|
BOOST_TEST( x.hash == 23558 );
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_main(int, char * [])
|
int main()
|
||||||
{
|
{
|
||||||
member_function_test();
|
member_function_test();
|
||||||
return 0;
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
@@ -30,8 +30,7 @@
|
|||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BOOST_INCLUDE_MAIN
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
#include <boost/test/test_tools.hpp>
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
@@ -103,8 +102,8 @@ void function_test()
|
|||||||
BOOST_TEST( bind(f_9, _1, 2, 3, 4, 5, 6, 7, 8, 9)(i) == 987654321L );
|
BOOST_TEST( bind(f_9, _1, 2, 3, 4, 5, 6, 7, 8, 9)(i) == 987654321L );
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_main(int, char * [])
|
int main()
|
||||||
{
|
{
|
||||||
function_test();
|
function_test();
|
||||||
return 0;
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
@@ -30,9 +30,7 @@
|
|||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
#define BOOST_INCLUDE_MAIN
|
|
||||||
#include <boost/test/test_tools.hpp>
|
|
||||||
|
|
||||||
struct X
|
struct X
|
||||||
{
|
{
|
||||||
@@ -158,8 +156,8 @@ void member_function_test()
|
|||||||
BOOST_TEST( x.hash == 23558 );
|
BOOST_TEST( x.hash == 23558 );
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_main(int, char * [])
|
int main()
|
||||||
{
|
{
|
||||||
member_function_test();
|
member_function_test();
|
||||||
return 0;
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
@@ -30,8 +30,7 @@
|
|||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define BOOST_INCLUDE_MAIN
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
#include <boost/test/test_tools.hpp>
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
@@ -103,8 +102,8 @@ void function_test()
|
|||||||
BOOST_TEST( bind(f_9, _1, 2, 3, 4, 5, 6, 7, 8, 9)(i) == 987654321L );
|
BOOST_TEST( bind(f_9, _1, 2, 3, 4, 5, 6, 7, 8, 9)(i) == 987654321L );
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_main(int, char * [])
|
int main()
|
||||||
{
|
{
|
||||||
function_test();
|
function_test();
|
||||||
return 0;
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
@@ -30,9 +30,7 @@
|
|||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <boost/detail/lightweight_test.hpp>
|
||||||
#define BOOST_INCLUDE_MAIN
|
|
||||||
#include <boost/test/test_tools.hpp>
|
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
||||||
@@ -485,7 +483,7 @@ void nested_bind_test()
|
|||||||
BOOST_TEST( (bind(fv_1, bind(f_0))(), (global_result == 17041L)) );
|
BOOST_TEST( (bind(fv_1, bind(f_0))(), (global_result == 17041L)) );
|
||||||
}
|
}
|
||||||
|
|
||||||
int test_main(int, char * [])
|
int main()
|
||||||
{
|
{
|
||||||
function_test();
|
function_test();
|
||||||
function_object_test();
|
function_object_test();
|
||||||
@@ -498,5 +496,5 @@ int test_main(int, char * [])
|
|||||||
member_function_void_test();
|
member_function_void_test();
|
||||||
nested_bind_test();
|
nested_bind_test();
|
||||||
|
|
||||||
return 0;
|
return boost::report_errors();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user