]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dovecot.m4: Add NOUNDEF option to run-test.sh
authorAki Tuomi <aki.tuomi@dovecot.fi>
Mon, 28 Nov 2016 12:12:23 +0000 (14:12 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 29 Nov 2016 12:45:13 +0000 (14:45 +0200)
Using this environment variable will disable
undefined value errors in valgrind.

dovecot.m4

index 50913d2feae2544af5303ed352aa899a3bdead45..471fb27d9270e5addd5cf83cb4348454397a11ab 100644 (file)
@@ -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