Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77839 - in trunk/libs/thread: build test
From: vicente.botet_at_[hidden]
Date: 2012-04-08 15:23:35


Author: viboes
Date: 2012-04-08 15:23:34 EDT (Sun, 08 Apr 2012)
New Revision: 77839
URL: http://svn.boost.org/trac/boost/changeset/77839

Log:
Thread: Activate share mutex upwards conversions tests
Text files modified:
   trunk/libs/thread/build/Jamfile.v2 | 12 ++++++------
   trunk/libs/thread/test/Jamfile.v2 | 31 +++++++++++++++++++------------
   2 files changed, 25 insertions(+), 18 deletions(-)

Modified: trunk/libs/thread/build/Jamfile.v2
==============================================================================
--- trunk/libs/thread/build/Jamfile.v2 (original)
+++ trunk/libs/thread/build/Jamfile.v2 2012-04-08 15:23:34 EDT (Sun, 08 Apr 2012)
@@ -68,19 +68,19 @@
 rule tag ( name : type ? : property-set )
 {
     local result = $(name) ;
-
+
     if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB
     {
         local api = [ $(property-set).get <threadapi> ] ;
-
+
         # non native api gets additional tag
         if $(api) != [ default_threadapi ] {
             result = $(result)_$(api) ;
         }
     }
-
+
     # forward to the boost tagging rule
- return [ indirect.call $(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
+ return [ indirect.call $(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
                 $(result) : $(type) : $(property-set) ] ;
 }
 
@@ -138,7 +138,7 @@
                 .notified = true ;
             }
         }
- else
+ else
         {
             result += <include>$(include_path) ;
             result += <library>$(lib_path) ;
@@ -175,7 +175,7 @@
     if <threadapi>pthread in $(properties)
     {
         result += <define>BOOST_THREAD_POSIX ;
- if <target-os>windows in $(properties)
+ if <target-os>windows in $(properties)
         {
             local paths = [ win32_pthread_paths $(properties) ] ;
             if $(paths)

Modified: trunk/libs/thread/test/Jamfile.v2
==============================================================================
--- trunk/libs/thread/test/Jamfile.v2 (original)
+++ trunk/libs/thread/test/Jamfile.v2 2012-04-08 15:23:34 EDT (Sun, 08 Apr 2012)
@@ -19,7 +19,7 @@
 import testing ;
 
 project
- : requirements
+ : requirements
                    <threading>multi
     ;
 
@@ -369,22 +369,22 @@
           [ thread-run ../example/tss.cpp ]
           [ thread-run ../example/xtime.cpp ]
           [ thread-run ../example/shared_monitor.cpp ]
- #[ thread-run ../example/shared_mutex.cpp ]
+ [ thread-run ../example/shared_mutex.cpp ]
           #[ thread-run ../example/v2_shared_monitor.cpp ]
           #[ thread-run ../example/v2_shared_mutex.cpp ]
     ;
 
     #explicit shared_upwards ;
- #test-suite shared_upwards
- #:
- # [ thread-run2 ./sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_shared_lock_try_pass.cpp : unique_lock__cons__move_ctor_shared_lock_try_p ]
- # [ thread-run2 ./sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_shared_lock_for_pass.cpp : unique_lock__cons__move_ctor_shared_lock_for_p ]
- # [ thread-run2 ./sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_shared_lock_until_pass.cpp : unique_lock__cons__move_ctor_shared_lock_until_p ]
- #
- # [ thread-run2 ./sync/mutual_exclusion/locks/upgrade_lock/cons/move_ctor_shared_lock_try_pass.cpp : upgrade_lock__cons__move_ctor_shared_lock_try_p ]
- # [ thread-run2 ./sync/mutual_exclusion/locks/upgrade_lock/cons/move_ctor_shared_lock_for_pass.cpp : upgrade_lock__cons__move_ctor_shared_lock_for_p ]
- # [ thread-run2 ./sync/mutual_exclusion/locks/upgrade_lock/cons/move_ctor_shared_lock_until_pass.cpp : upgrade_lock__cons__move_ctor_shared_lock_until_p ]
- #;
+ test-suite shared_upwards
+ :
+ [ thread-run2 ./sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_shared_lock_try_pass.cpp : unique_lock__cons__move_ctor_shared_lock_try_p ]
+ [ thread-run2 ./sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_shared_lock_for_pass.cpp : unique_lock__cons__move_ctor_shared_lock_for_p ]
+ [ thread-run2 ./sync/mutual_exclusion/locks/unique_lock/cons/move_ctor_shared_lock_until_pass.cpp : unique_lock__cons__move_ctor_shared_lock_until_p ]
+
+ [ thread-run2 ./sync/mutual_exclusion/locks/upgrade_lock/cons/move_ctor_shared_lock_try_pass.cpp : upgrade_lock__cons__move_ctor_shared_lock_try_p ]
+ [ thread-run2 ./sync/mutual_exclusion/locks/upgrade_lock/cons/move_ctor_shared_lock_for_pass.cpp : upgrade_lock__cons__move_ctor_shared_lock_for_p ]
+ [ thread-run2 ./sync/mutual_exclusion/locks/upgrade_lock/cons/move_ctor_shared_lock_until_pass.cpp : upgrade_lock__cons__move_ctor_shared_lock_until_p ]
+ ;
 
 
     #explicit shared_lock_guard ;
@@ -406,4 +406,11 @@
           [ thread-run2 ./sync/mutual_exclusion/locks/reverse_lock/types_pass.cpp : reverse_lock__types_p ]
     ;
 
+ explicit tt ;
+ test-suite tt
+ :
+ #[ thread-test test_thread.cpp ]
+ [ thread-run2 test_ml.cpp : test_ml ]
+ ;
+
 }


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