Skip to content

Commit

Permalink
Add support for running valgrind tests with --trace-children=no.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanbosch authored and sirainen committed Feb 12, 2018
1 parent d117b74 commit 745d731
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions m4/dovecot.m4
Expand Up @@ -45,16 +45,22 @@ else
noundef=""
fi
if test "\$NOCHILDREN" != ""; then
trace_children="--trace-children=no"
else
trace_children="--trace-children=yes"
fi
if test "\$NOVALGRIND" != ""; then
\$[*]
ret=\$?
else
trap "rm -f test.out.\$\$" 0 1 2 3 15
supp_path="\$top_srcdir/run-test-valgrind.supp"
if test -r "\$supp_path"; then
valgrind -q --trace-children=yes --leak-check=full --suppressions="\$supp_path" --log-file=test.out.\$\$ \$noundef \$[*]
valgrind -q \$trace_children --leak-check=full --suppressions="\$supp_path" --log-file=test.out.\$\$ \$noundef \$[*]
else
valgrind -q --trace-children=yes --leak-check=full --log-file=test.out.\$\$ \$noundef \$[*]
valgrind -q \$trace_children --leak-check=full --log-file=test.out.\$\$ \$noundef \$[*]
fi
ret=\$?
if test -s test.out.\$\$; then
Expand Down

0 comments on commit 745d731

Please sign in to comment.