From: Stephan Bosch Date: Fri, 10 Apr 2020 15:57:54 +0000 (+0200) Subject: m4: dovecot.m4 - Run valgrind with --error-exitcode=213 parameter in generated run... X-Git-Tag: 2.3.13~724 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=409989980fb97b45fe9d1c811052211e32b89063;p=thirdparty%2Fdovecot%2Fcore.git m4: dovecot.m4 - Run valgrind with --error-exitcode=213 parameter in generated run-test.sh. This way, test child processes will indicate valgrind failure with exit code 1000, making unit tests properly fail even though the actual test performed by the child process succeeded. --- diff --git a/m4/dovecot.m4 b/m4/dovecot.m4 index 190efb2acc..26cdf5693d 100644 --- a/m4/dovecot.m4 +++ b/m4/dovecot.m4 @@ -299,9 +299,9 @@ 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 --leak-check=full --gen-suppressions=all --suppressions="\$supp_path" --log-file=\$test_out \$noundef \$[*] + valgrind -q \$trace_children --error-exitcode=213 --leak-check=full --gen-suppressions=all --suppressions="\$supp_path" --log-file=\$test_out \$noundef \$[*] else - valgrind -q \$trace_children --leak-check=full --gen-suppressions=all --log-file=\$test_out \$noundef \$[*] + valgrind -q \$trace_children --error-exitcode=213 --leak-check=full --gen-suppressions=all --log-file=\$test_out \$noundef \$[*] fi ret=\$? if test -s \$test_out; then