]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Add support for running valgrind tests with --trace-children=no.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Fri, 2 Feb 2018 17:33:49 +0000 (18:33 +0100)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 12 Feb 2018 14:24:53 +0000 (16:24 +0200)
m4/dovecot.m4

index 810aa40217b85dd6c98e4be72579e89f193499b7..e7872c5183047f4f348e4715fb95b25ddc6e1fc0 100644 (file)
@@ -45,6 +45,12 @@ else
   noundef=""
 fi
 
+if test "\$NOCHILDREN" != ""; then
+  trace_children="--trace-children=no"
+else
+  trace_children="--trace-children=yes"
+fi
+
 if test "\$NOVALGRIND" != ""; then
   \$[*]
   ret=\$?
@@ -52,9 +58,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.\$\$ \$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