Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73302 - in trunk/libs/pool: example test
From: john_at_[hidden]
Date: 2011-07-22 13:38:40


Author: johnmaddock
Date: 2011-07-22 13:38:38 EDT (Fri, 22 Jul 2011)
New Revision: 73302
URL: http://svn.boost.org/trac/boost/changeset/73302

Log:
Turn on threading support for threaded test!
Disable warning-as-errors for Intel compiler (it's too strict for Intel-10).
Make test allocators std-conforming.
Text files modified:
   trunk/libs/pool/example/sys_allocator.hpp | 4 ++--
   trunk/libs/pool/test/Jamfile.v2 | 7 +++----
   2 files changed, 5 insertions(+), 6 deletions(-)

Modified: trunk/libs/pool/example/sys_allocator.hpp
==============================================================================
--- trunk/libs/pool/example/sys_allocator.hpp (original)
+++ trunk/libs/pool/example/sys_allocator.hpp 2011-07-22 13:38:38 EDT (Fri, 22 Jul 2011)
@@ -39,7 +39,7 @@
 
   static pointer address(reference r) { return &r; }
   static const_pointer address(const_reference r) { return &r; }
- static pointer allocate(const size_type n, const pointer = 0)
+ static pointer allocate(const size_type n, const void* = 0)
   {
     const pointer ret = (pointer) std::malloc(n * sizeof(T));
     if (ret == 0)
@@ -83,7 +83,7 @@
 
   static pointer address(reference r) { return &r; }
   static const_pointer address(const_reference r) { return &r; }
- static pointer allocate(const size_type n, const pointer = 0)
+ static pointer allocate(const size_type n, const void* = 0)
   { return (pointer) new char[n * sizeof(T)]; }
   static void deallocate(const pointer p, const size_type)
   { delete [] p; }

Modified: trunk/libs/pool/test/Jamfile.v2
==============================================================================
--- trunk/libs/pool/test/Jamfile.v2 (original)
+++ trunk/libs/pool/test/Jamfile.v2 2011-07-22 13:38:38 EDT (Fri, 22 Jul 2011)
@@ -15,7 +15,6 @@
         <toolset>gcc:<cxxflags>-Wno-long-long
         <toolset>pathscale:<cxxflags>-Wno-long-long
         <toolset>gcc:<cxxflags>-Wcast-align
- <toolset>intel:<warnings-as-errors>on
         <toolset>msvc:<warnings-as-errors>on
     ;
 
@@ -34,7 +33,7 @@
     [ run test_bug_1252.cpp ]
     [ run test_bug_2696.cpp ]
     [ run test_bug_5526.cpp ]
- [ run test_threading.cpp : : : <library>/boost/thread//boost_thread <toolset>gcc:<cxxflags>-Wno-attributes <toolset>gcc:<cxxflags>-Wno-missing-field-initializers ]
+ [ run test_threading.cpp : : : <threading>multi <library>/boost/thread//boost_thread <toolset>gcc:<cxxflags>-Wno-attributes <toolset>gcc:<cxxflags>-Wno-missing-field-initializers ]
     [ run ../example/time_pool_alloc.cpp ]
     [ compile test_poisoned_macros.cpp ]
 
@@ -50,7 +49,7 @@
     [ run test_bug_1252.cpp : : : [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] : test_bug_1252_valgrind ]
     [ run test_bug_2696.cpp : : : [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] : test_bug_2696_valgrind ]
     [ run test_bug_5526.cpp : : : [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] : test_bug_5526_valgrind ]
- [ run test_threading.cpp : : : <library>/boost/thread//boost_thread <toolset>gcc:<cxxflags>-Wno-attributes <toolset>gcc:<cxxflags>-Wno-missing-field-initializers [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] : test_threading_valgrind ]
+ [ run test_threading.cpp : : : <threading>multi <library>/boost/thread//boost_thread <toolset>gcc:<cxxflags>-Wno-attributes <toolset>gcc:<cxxflags>-Wno-missing-field-initializers [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] : test_threading_valgrind ]
 
 #
 # The following tests test Boost.Pool's code with valgrind if it's available, and in any case with BOOST_POOL_VALGRIND defined
@@ -65,7 +64,7 @@
     [ run test_bug_1252.cpp : : : <define>BOOST_POOL_VALGRIND=1 [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] : test_bug_1252_valgrind_2 ]
     [ run test_bug_2696.cpp : : : <define>BOOST_POOL_VALGRIND=1 [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] : test_bug_2696_valgrind_2 ]
     [ run test_bug_5526.cpp : : : <define>BOOST_POOL_VALGRIND=1 [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] : test_bug_5526_valgrind_2 ]
- [ run test_threading.cpp : : : <library>/boost/thread//boost_thread <define>BOOST_POOL_VALGRIND=1 <toolset>gcc:<cxxflags>-Wno-attributes <toolset>gcc:<cxxflags>-Wno-missing-field-initializers [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] : test_threading_valgrind_2 ]
+ [ run test_threading.cpp : : : <threading>multi <library>/boost/thread//boost_thread <define>BOOST_POOL_VALGRIND=1 <toolset>gcc:<cxxflags>-Wno-attributes <toolset>gcc:<cxxflags>-Wno-missing-field-initializers [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] : test_threading_valgrind_2 ]
     [ run-fail test_valgrind_fail_1.cpp : : : <define>BOOST_POOL_VALGRIND=1 [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] ]
     [ run-fail test_valgrind_fail_2.cpp : : : <define>BOOST_POOL_VALGRIND=1 [ check-target-builds valgrind_config_check : <testing.launcher>"valgrind --error-exitcode=1" : <build>no ] ]
     ;


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