From 409989980fb97b45fe9d1c811052211e32b89063 Mon Sep 17 00:00:00 2001 From: Stephan Bosch Date: Fri, 10 Apr 2020 17:57:54 +0200 Subject: [PATCH] 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. --- m4/dovecot.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.3