dovecot-2.2: run-tests.sh: Add support for reading valgrind supp...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 8 11:58:43 UTC 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/802187be0f77
changeset: 17357:802187be0f77
user:      Teemu Huovila <teemu.huovila at dovecot.fi>
date:      Thu May 08 14:57:56 2014 +0300
description:
run-tests.sh: Add support for reading valgrind suppressions if they exist.

diffstat:

 run-test.sh |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r bedecd5b6bab -r 802187be0f77 run-test.sh
--- a/run-test.sh	Thu May 08 14:34:39 2014 +0300
+++ b/run-test.sh	Thu May 08 14:57:56 2014 +0300
@@ -1,8 +1,12 @@
 #!/bin/sh
 
 trap "rm -f test.out.$$" 0 1 2 3 15
-
-valgrind -q --log-file=test.out.$$ $*
+supp_path="`dirname $0`/run-test-valgrind.supp"
+if [ -r "$supp_path" ]; then
+  valgrind -q --suppressions="$supp_path" --log-file=test.out.$$ $*
+else
+  valgrind -q --log-file=test.out.$$ $*
+fi
 ret=$?
 if [ -s test.out.$$ ]; then
   cat test.out.$$


More information about the dovecot-cvs mailing list