Skip to content

Commit

Permalink
selftest: set valgrind options
Browse files Browse the repository at this point in the history
In particular '--db-attach' interferes badly with the io redirection of the
test environment and is superseded by the vgdb feature of valgrind.

Signed-off-by: Gregor Beck <[email protected]>
Reviewed-by: Andreas Schneider <[email protected]>
Reviewed-by: Michael Adam <[email protected]>
  • Loading branch information
g-beck authored and obnoxxx committed Dec 11, 2013
1 parent db9188f commit c140fe0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion selftest/valgrind_run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ ENV="$1"

shift 1

CMD="$ENV valgrind -q --db-attach=yes --num-callers=30 $@"
CMD="$ENV valgrind --num-callers=30
--trace-children=yes --log-file=valgrind.%p.log
${VALGRIND_OPT- --time-stamp=yes --track-fds=yes --read-var-info=yes --track-origins=yes --leak-check=yes}
$@"

echo $CMD
eval $CMD

0 comments on commit c140fe0

Please sign in to comment.