Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69100 - sandbox/interthreads/libs/interthreads/test
From: vicente.botet_at_[hidden]
Date: 2011-02-20 15:08:09


Author: viboes
Date: 2011-02-20 15:08:07 EST (Sun, 20 Feb 2011)
New Revision: 69100
URL: http://svn.boost.org/trac/boost/changeset/69100

Log:
Interthreads: remove dependency on Boost.Test
Text files modified:
   sandbox/interthreads/libs/interthreads/test/Jamfile.v2 | 17 +++++------------
   sandbox/interthreads/libs/interthreads/test/test_thread_shared_ptr.cpp | 5 +++--
   2 files changed, 8 insertions(+), 14 deletions(-)

Modified: sandbox/interthreads/libs/interthreads/test/Jamfile.v2
==============================================================================
--- sandbox/interthreads/libs/interthreads/test/Jamfile.v2 (original)
+++ sandbox/interthreads/libs/interthreads/test/Jamfile.v2 2011-02-20 15:08:07 EST (Sun, 20 Feb 2011)
@@ -26,17 +26,11 @@
 
 project
     : requirements
- <library>/boost/test//boost_unit_test_framework/<link>static
- <library>/boost/thread//boost_thread/<link>static
- #<library>../build//boost_interthreads/<link>static
- #<library>/sandbox/interthreads/libs/interthreads/build//boost_interthreads/<link>static
+ #<library>/boost/test//boost_unit_test_framework
+ <library>/boost/thread//boost_thread
+ #<library>/boost/interthreads//boost_interthreads
 
- <include>../../..
- <include>/boost_1_39_0
         <threading>multi
-# <target-os>cygwin
-# <interthreadapi>pthread
-# <variant>debug
 # <define>BOOST_THREAD_HAS_THREAD_ATTR
 
     ;
@@ -45,8 +39,7 @@
 {
     return
     [ run $(sources) ../build//boost_interthreads/<link>static : : : ]
- #[ run $(sources) : : : ]
-# [ run $(sources) ../../../../libs/thread/build//boost_thread : : : : $(sources[1]:B)_lib ]
+# [ run $(sources) ../../../../libs/thread/build//boost_interthreads : : : : $(sources[1]:B)_lib ]
     ;
 }
 
@@ -61,7 +54,7 @@
     test-suite "example"
         :
           [ interthreads-run ../example/hello_world.cpp ]
- [ interthreads-run ../example/basic_keep_alive.cpp ../example/async_ostream.cpp ]
+ # [ interthreads-run ../example/basic_keep_alive.cpp ../example/async_ostream.cpp ]
 
 
     ;

Modified: sandbox/interthreads/libs/interthreads/test/test_thread_shared_ptr.cpp
==============================================================================
--- sandbox/interthreads/libs/interthreads/test/test_thread_shared_ptr.cpp (original)
+++ sandbox/interthreads/libs/interthreads/test/test_thread_shared_ptr.cpp 2011-02-20 15:08:07 EST (Sun, 20 Feb 2011)
@@ -16,6 +16,7 @@
 #include <iostream>
 #include <boost/interthreads/thread_specific_shared_ptr.hpp>
 #include <boost/interthreads/thread_decorator.hpp>
+#include <boost/detail/lightweight_test.hpp>
 
 void sleep(int sec)
 {
@@ -101,7 +102,7 @@
 
 }
 
-int main(int argc, char* argv[])
+int main()
 {
     int result;
 
@@ -154,6 +155,6 @@
         boost::mutex::scoped_lock out_guard(out_global_mutex);
         std::cout << "xxx" << cths->get_result() << " " << boost::this_thread::get_id()<<std::endl;
     }
- return 0;
+ return boost::report_errors();
 }
 


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