X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=libs%2Fmath%2Ftest%2Ftest_rationals.cpp;h=83298eb97ff3397540385eb596081cd516b87573;hb=08c1e93fa36a49f49325a07fe91ff92c964c2b6c;hp=8a4a4ac592ea38988b914e846cec819c979afb77;hpb=bb4dd8289b351fae6b55e303f189127a394a1edd;p=platform%2Fupstream%2Fboost.git diff --git a/libs/math/test/test_rationals.cpp b/libs/math/test/test_rationals.cpp index 8a4a4ac..83298eb 100644 --- a/libs/math/test/test_rationals.cpp +++ b/libs/math/test/test_rationals.cpp @@ -4,7 +4,8 @@ // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include -#include +#define BOOST_TEST_MAIN +#include #include #include #include @@ -26,7 +27,7 @@ void test_spots(T t, const char* n) do_test_spots(t, T(0)); } -int test_main(int, char* []) +BOOST_AUTO_TEST_CASE( test_main ) { test_spots(0.0F, "float"); test_spots(0.0, "double"); @@ -41,7 +42,7 @@ int test_main(int, char* []) "not available at all, or because they are too inaccurate for these tests " "to pass." << std::cout; #endif - return 0; + }