build the valgrind-suppression similar to the testsuite

the valgrind memcheck got more and more flooded with
"possibly lost" memory blocks allocated by GLib and friends.

Linking the vgsuppression binary in the same way than the
testsuite helps us getting ahead of all that noise

Incidentally, we need to rearrange the build dependency tree
here; previously we made the testsuite depend on vgsuppression,
to ensure the latter gets recompiled prior to running tests;
now vgsuppression itself depends on all the test libraries,
so we rather need to make it direcly a prerequisite target
of running the testsuite (this approach is not precisely
correct in a logical sense, yet helps us to get it
recompiled when needed)
This commit is contained in:
Fischlurch 2015-08-14 23:39:07 +02:00
parent 9a89d7b193
commit db1ca03220

View file

@ -93,9 +93,8 @@ Export('testsuite')
# for creating a Valgrind-Suppression file
vgsuppr = env.Program('vgsuppression',['tool/vgsuppression.c']+core_lib) ## for suppressing false valgrind alarms
tools += [vgsuppr]
Depends(testsuite,vgsuppr)
vgsuppression = envSuite.Program('vgsuppression',['tool/vgsuppression.c']+testLibs+core_lib) ## for suppressing false valgrind alarms
tools += [vgsuppression]
#
@ -132,6 +131,7 @@ testDir = env.Dir('#$TARGDIR')
runTest = env.File("test.sh").abspath
runTests = testEnv.Command('#$TARGDIR/,testlog', testsuite, runTest, chdir=testDir)
Depends(runTests,vgsuppression)