$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r69445 - sandbox/guild/pool/libs/pool/test
From: john_at_[hidden]
Date: 2011-03-01 13:11:25
Author: johnmaddock
Date: 2011-03-01 13:11:23 EST (Tue, 01 Mar 2011)
New Revision: 69445
URL: http://svn.boost.org/trac/boost/changeset/69445
Log:
Fix typo in test/test_bug_4960.cpp
Add valgrind tests only if available.
Added:
   sandbox/guild/pool/libs/pool/test/valgrind_config_check.cpp   (contents, props changed)
Text files modified: 
   sandbox/guild/pool/libs/pool/test/Jamfile.v2        |    16 ++++++++++++++++                        
   sandbox/guild/pool/libs/pool/test/test_bug_4960.cpp |     2 +-                                      
   2 files changed, 17 insertions(+), 1 deletions(-)
Modified: sandbox/guild/pool/libs/pool/test/Jamfile.v2
==============================================================================
--- sandbox/guild/pool/libs/pool/test/Jamfile.v2	(original)
+++ sandbox/guild/pool/libs/pool/test/Jamfile.v2	2011-03-01 13:11:23 EST (Tue, 01 Mar 2011)
@@ -19,6 +19,9 @@
 
 import testing ;
 
+run valgrind_config_check.cpp : : : <testing.launcher>"valgrind --error-exitcode=1" ;
+explicit valgrind_config_check ;
+
 test-suite pool :
     [ run test_gcd_lcm.cpp ]
     [ run test_simple_seg_storage.cpp ]
@@ -29,6 +32,19 @@
     [ run test_bug_4960.cpp ]
     [ run test_bug_1252.cpp ]
     [ run test_bug_2696.cpp ]
+
+#
+# The following tests test Boost.Pool's code with valgrind only if it's available:
+#
+    [ run test_gcd_lcm.cpp : : : [ check-target-builds valgrind_config_check : : <testing.launcher>"valgrind --error-exitcode=1" ] : test_gcd_lcm_valgrind ]
+    [ run test_simple_seg_storage.cpp  : : : [ check-target-builds valgrind_config_check : : <testing.launcher>"valgrind --error-exitcode=1" ] : test_simple_seg_storage_valgrind ]
+    [ run test_pool_alloc.cpp  : : : [ check-target-builds valgrind_config_check : : <testing.launcher>"valgrind --error-exitcode=1" ] : test_pool_alloc_valgrind ]
+    [ run pool_msvc_compiler_bug_test.cpp  : : : [ check-target-builds valgrind_config_check : : <testing.launcher>"valgrind --error-exitcode=1" ] : pool_msvc_compiler_bug_test_valgrind ]
+    [ run test_msvc_mem_leak_detect.cpp  : : : [ check-target-builds valgrind_config_check : : <testing.launcher>"valgrind --error-exitcode=1" ] : test_msvc_mem_leak_detect_valgrind ]
+    [ run test_bug_3349.cpp  : : : [ check-target-builds valgrind_config_check : : <testing.launcher>"valgrind --error-exitcode=1" ] : test_bug_3349_valgrind ]
+    [ run test_bug_4960.cpp  : : : [ check-target-builds valgrind_config_check : : <testing.launcher>"valgrind --error-exitcode=1" ] : test_bug_4960_valgrind ]
+    [ run test_bug_1252.cpp  : : : [ check-target-builds valgrind_config_check : : <testing.launcher>"valgrind --error-exitcode=1" ] : test_bug_1252_valgrind ]
+    [ run test_bug_2696.cpp  : : : [ check-target-builds valgrind_config_check : : <testing.launcher>"valgrind --error-exitcode=1" ] : test_bug_2696_valgrind ]
     ;
 
 
Modified: sandbox/guild/pool/libs/pool/test/test_bug_4960.cpp
==============================================================================
--- sandbox/guild/pool/libs/pool/test/test_bug_4960.cpp	(original)
+++ sandbox/guild/pool/libs/pool/test/test_bug_4960.cpp	2011-03-01 13:11:23 EST (Tue, 01 Mar 2011)
@@ -6,7 +6,7 @@
  * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt)
  */
 
-// Test of bug #3349 (https://svn.boost.org/trac/boost/ticket/3349)
+// Test of bug #4960 (https://svn.boost.org/trac/boost/ticket/4960)
 
 #include <boost/pool/pool_alloc.hpp>
 #include <vector>
Added: sandbox/guild/pool/libs/pool/test/valgrind_config_check.cpp
==============================================================================
--- (empty file)
+++ sandbox/guild/pool/libs/pool/test/valgrind_config_check.cpp	2011-03-01 13:11:23 EST (Tue, 01 Mar 2011)
@@ -0,0 +1,7 @@
+
+#include <valgrind/valgrind.h>
+
+int main()
+{
+   return 0;
+}
\ No newline at end of file