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_condition_notify_all.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_condition_notify_all.cpp')
-rw-r--r-- | libs/thread/test/test_condition_notify_all.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/libs/thread/test/test_condition_notify_all.cpp b/libs/thread/test/test_condition_notify_all.cpp index 944f94554..017ff28d1 100644 --- a/libs/thread/test/test_condition_notify_all.cpp +++ b/libs/thread/test/test_condition_notify_all.cpp @@ -4,7 +4,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: condition_variable notify_all test suite #include <boost/thread/detail/config.hpp> #include <boost/thread/thread_only.hpp> @@ -202,7 +202,7 @@ void do_test_notify_all_following_notify_one_wakes_all_threads() thread3.join(); } -void test_condition_notify_all() +BOOST_AUTO_TEST_CASE(test_condition_notify_all) { timed_test(&do_test_condition_notify_all_wakes_from_wait, timeout_seconds); timed_test(&do_test_condition_notify_all_wakes_from_wait_with_predicate, timeout_seconds); @@ -213,14 +213,4 @@ void test_condition_notify_all() } -boost::unit_test::test_suite* init_unit_test_suite(int, char*[]) -{ - boost::unit_test::test_suite* test = - BOOST_TEST_SUITE("Boost.Threads: condition test suite"); - - test->add(BOOST_TEST_CASE(&test_condition_notify_all)); - - return test; -} - |