diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2015-04-08 03:09:47 +0000 |
---|---|---|
committer | <> | 2015-05-05 14:37:32 +0000 |
commit | f2541bb90af059680aa7036f315f052175999355 (patch) | |
tree | a5b214744b256f07e1dc2bd7273035a7808c659f /libs/thread/test/test_2741.cpp | |
parent | ed232fdd34968697a68783b3195b1da4226915b5 (diff) | |
download | boost-tarball-master.tar.gz |
Imported from /home/lorry/working-area/delta_boost-tarball/boost_1_58_0.tar.bz2.HEADboost_1_58_0master
Diffstat (limited to 'libs/thread/test/test_2741.cpp')
-rw-r--r-- | libs/thread/test/test_2741.cpp | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/libs/thread/test/test_2741.cpp b/libs/thread/test/test_2741.cpp index 409a51f7b..793e68cdc 100644 --- a/libs/thread/test/test_2741.cpp +++ b/libs/thread/test/test_2741.cpp @@ -3,7 +3,7 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #define BOOST_THREAD_VERSION 2 - +#define BOOST_TEST_MODULE Boost.Threads: thread attributes test suite #include <boost/thread/detail/config.hpp> #include <boost/thread/thread_only.hpp> @@ -29,7 +29,7 @@ void simple_thread() test_value = 999; } -void test_native_handle() +BOOST_AUTO_TEST_CASE(test_native_handle) { boost::thread_attributes attrs; @@ -51,7 +51,7 @@ void test_native_handle() } -void test_stack_size() +BOOST_AUTO_TEST_CASE(test_stack_size) { boost::thread_attributes attrs; @@ -70,18 +70,8 @@ void do_test_creation_with_attrs() BOOST_CHECK_EQUAL(test_value, 999); } -void test_creation_with_attrs() +BOOST_AUTO_TEST_CASE(test_creation_with_attrs) { timed_test(&do_test_creation_with_attrs, 1); } -boost::unit_test_framework::test_suite* init_unit_test_suite(int, char*[]) -{ - boost::unit_test_framework::test_suite* test = BOOST_TEST_SUITE("Boost.Threads: thread attributes test suite"); - - test->add(BOOST_TEST_CASE(test_native_handle)); - test->add(BOOST_TEST_CASE(test_stack_size)); - test->add(BOOST_TEST_CASE(test_creation_with_attrs)); - - return test; -} |