More valgrind updates
g0dil [Mon, 7 Sep 2009 15:14:10 +0000 (15:14 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1393 270642c3-0616-0410-b53a-bc976706d245

SConstruct
tools/valgrind.sup

index a5de9b2..b6dab2c 100644 (file)
@@ -52,6 +52,7 @@ env.Append(
    LIBS                   = [ '$LIBSENF$LIBADDSUFFIX', 'rt', '$BOOSTREGEXLIB', 
                               '$BOOSTIOSTREAMSLIB', '$BOOSTSIGNALSLIB', '$BOOSTFSLIB' ], 
    TEST_EXTRA_LIBS        = [  ],
+   VALGRINDARGS           = [ '--num-callers=50' ],
 
    PREFIX                 = '#/dist',
    LIBINSTALLDIR          = '$PREFIX${syslayout and "/lib" or ""}',
@@ -169,11 +170,12 @@ env.PhonyTarget('prepare', [], [])
 #### valgrind
 for test in env.FindAllBoostUnitTests():
     stamp = env.Command(test[0].dir.File('.test-valgrind.stamp'), 
-                        [ test[0].dir.File('.test.bin'), test ],
+                        [ test[0].dir.File('.test.bin'), 'tools/valgrind.sup', test ],
                         [ """valgrind --tool=memcheck 
                                       --error-exitcode=99 
-                                      --suppressions=tools/valgrind.sup 
-                                          $SOURCE $BOOSTTESTARGS;
+                                      --suppressions=${SOURCES[1]}
+                                      $VALGRINDARGS
+                                          ${SOURCES[0]} $BOOSTTESTARGS;
                              [ $$? -ne 99 ] || exit 1""".replace("\n"," "),
                           Touch("$TARGET") ])
     alias = env.Command(test[0].dir.File('valgrind'), stamp, [ env.NopAction() ])
index 223c0be..cbc5426 100644 (file)
    if_indextoname-suppression-1
    Memcheck:Param
    ioctl(SIOCGIFINDEX)
-   obj:/lib/ld-2.3.6.so
+   obj:/lib/ld-*.so
 }
 
 {
-   boost_unittest_sigaltstack
+   boost_unittest_sigaltstack-suppression-1
    Memcheck:Param
    sigaltstack(ss)
    obj:/lib/ld-2.7.so