From: Aki Tuomi Date: Mon, 28 Nov 2016 12:12:23 +0000 (+0200) Subject: dovecot.m4: Add NOUNDEF option to run-test.sh X-Git-Tag: 2.2.27~29 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=33498b5c46c620941a3498cce0d2c98ca5775d74;p=thirdparty%2Fdovecot%2Fcore.git dovecot.m4: Add NOUNDEF option to run-test.sh Using this environment variable will disable undefined value errors in valgrind. --- diff --git a/dovecot.m4 b/dovecot.m4 index 50913d2fea..471fb27d92 100644 --- a/dovecot.m4 +++ b/dovecot.m4 @@ -39,6 +39,12 @@ AC_DEFUN([DC_DOVECOT_TEST_WRAPPER],[ top_srcdir=\$[1] shift +if test "\$NOUNDEF" != ""; then + noundef="--undef-value-errors=no" +else + noundef="" +fi + if test "\$NOVALGRIND" != ""; then \$[*] ret=\$? @@ -46,9 +52,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=yes --leak-check=full --suppressions="\$supp_path" --log-file=test.out.\$\$ \$[*] + valgrind -q --trace-children=yes --leak-check=full --suppressions="\$supp_path" --log-file=test.out.\$\$ \$noundef \$[*] else - valgrind -q --trace-children=yes --leak-check=full --log-file=test.out.\$\$ \$[*] + valgrind -q --trace-children=yes --leak-check=full --log-file=test.out.\$\$ \$noundef \$[*] fi ret=\$? if test -s test.out.\$\$; then