|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r77586 - trunk/libs/thread/test
From: vicente.botet_at_[hidden]
Date: 2012-03-27 13:26:11
Author: viboes
Date: 2012-03-27 13:26:10 EDT (Tue, 27 Mar 2012)
New Revision: 77586
URL: http://svn.boost.org/trac/boost/changeset/77586
Log:
Thread: DOn't use Boost.Test when not needed to avoid issues on Sun
Text files modified:
trunk/libs/thread/test/Jamfile.v2 | 73 ++++++++++++++++++++++-----------------
1 files changed, 41 insertions(+), 32 deletions(-)
Modified: trunk/libs/thread/test/Jamfile.v2
==============================================================================
--- trunk/libs/thread/test/Jamfile.v2 (original)
+++ trunk/libs/thread/test/Jamfile.v2 2012-03-27 13:26:10 EDT (Tue, 27 Mar 2012)
@@ -19,7 +19,7 @@
import testing ;
project
- : requirements <library>/boost/test//boost_unit_test_framework/<link>static
+ : requirements
<threading>multi
;
@@ -32,6 +32,15 @@
;
}
+rule thread-test ( sources )
+{
+ return
+ [ run $(sources) ../build//boost_thread : : : <library>/boost/test//boost_unit_test_framework/<link>static ]
+ [ run $(sources) ../src/tss_null.cpp ../build//boost_thread/<link>static
+ : : : <library>/boost/test//boost_unit_test_framework/<link>static : $(sources[1]:B)_lib ]
+ ;
+}
+
rule thread-run2 ( sources : name )
{
return
@@ -65,36 +74,36 @@
{
test-suite threads
:
- [ thread-run test_thread.cpp ]
- [ thread-run test_thread_id.cpp ]
- [ thread-run test_hardware_concurrency.cpp ]
- [ thread-run test_thread_move.cpp ]
- [ thread-run test_thread_return_local.cpp ]
- [ thread-run test_thread_move_return.cpp ]
- [ thread-run test_thread_launching.cpp ]
- [ thread-run test_thread_mf.cpp ]
- [ thread-run test_thread_exit.cpp ]
- [ thread-run test_move_function.cpp ]
- [ thread-run test_mutex.cpp ]
- [ thread-run test_condition_notify_one.cpp ]
- [ thread-run test_condition_timed_wait_times_out.cpp ]
- [ thread-run test_condition_notify_all.cpp ]
- [ thread-run test_condition.cpp ]
- [ thread-run test_tss.cpp ]
- [ thread-run test_once.cpp ]
- [ thread-run test_xtime.cpp ]
- [ thread-run test_barrier.cpp ]
- [ thread-run test_shared_mutex.cpp ]
- [ thread-run test_shared_mutex_part_2.cpp ]
- [ thread-run test_shared_mutex_timed_locks.cpp ]
- [ thread-run test_shared_mutex_timed_locks_chrono.cpp ]
+ [ thread-test test_thread.cpp ]
+ [ thread-test test_thread_id.cpp ]
+ [ thread-test test_hardware_concurrency.cpp ]
+ [ thread-test test_thread_move.cpp ]
+ [ thread-test test_thread_return_local.cpp ]
+ [ thread-test test_thread_move_return.cpp ]
+ [ thread-test test_thread_launching.cpp ]
+ [ thread-test test_thread_mf.cpp ]
+ [ thread-test test_thread_exit.cpp ]
+ [ thread-test test_move_function.cpp ]
+ [ thread-test test_mutex.cpp ]
+ [ thread-test test_condition_notify_one.cpp ]
+ [ thread-test test_condition_timed_wait_times_out.cpp ]
+ [ thread-test test_condition_notify_all.cpp ]
+ [ thread-test test_condition.cpp ]
+ [ thread-test test_tss.cpp ]
+ [ thread-test test_once.cpp ]
+ [ thread-test test_xtime.cpp ]
+ [ thread-test test_barrier.cpp ]
+ [ thread-test test_shared_mutex.cpp ]
+ [ thread-test test_shared_mutex_part_2.cpp ]
+ [ thread-test test_shared_mutex_timed_locks.cpp ]
+ [ thread-test test_shared_mutex_timed_locks_chrono.cpp ]
#uncomment the following once these works on windows
- #[ thread-run test_v2_shared_mutex.cpp ]
- #[ thread-run test_v2_shared_mutex_part_2.cpp ]
- #[ thread-run test_v2_shared_mutex_timed_locks.cpp ]
- [ thread-run test_lock_concept.cpp ]
- [ thread-run test_generic_locks.cpp ]
- [ thread-run test_futures.cpp ]
+ #[ thread-test test_v2_shared_mutex.cpp ]
+ #[ thread-test test_v2_shared_mutex_part_2.cpp ]
+ #[ thread-test test_v2_shared_mutex_timed_locks.cpp ]
+ [ thread-test test_lock_concept.cpp ]
+ [ thread-test test_generic_locks.cpp ]
+ [ thread-test test_futures.cpp ]
[ compile-fail no_implicit_move_from_lvalue_thread.cpp ]
[ compile-fail no_implicit_assign_from_lvalue_thread.cpp ]
;
@@ -103,9 +112,9 @@
#explicit tickets ;
test-suite tickets
:
- [ thread-run test_2309.cpp ]
+ [ thread-test test_2309.cpp ]
[ thread-run test_2501.cpp ]
- [ thread-run test_2741.cpp ]
+ [ thread-test test_2741.cpp ]
[ thread-run test_4521.cpp ]
[ thread-run test_4648.cpp ]
[ thread-run test_4882.cpp ]
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk