summaryrefslogtreecommitdiff
path: root/libs/thread/test/test_2741.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/thread/test/test_2741.cpp')
-rw-r--r--libs/thread/test/test_2741.cpp18
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;
-}