[sheepdog] [PATCH 03/14] tests: silence valgrind output
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Tue Apr 30 10:29:58 CEST 2013
Valgrind prints only error messages with this patch.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
tests/common.rc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/common.rc b/tests/common.rc
index c9ffe27..e59b5f0 100644
--- a/tests/common.rc
+++ b/tests/common.rc
@@ -183,7 +183,7 @@ _valgrind_sheep()
# Dump a core file and stop the script on the first valgrind error.
db_cmd="gdb -nw --ex \"generate-core-file ${dir}/core\" %f %p > /dev/null; \
echo \"core dumped (${dir}/core)\"; kill \$PPID"
- opts="--db-attach=yes --db-command='${db_cmd}' --suppressions=valgrind.supp"
+ opts="--db-attach=yes --db-command='${db_cmd}' --suppressions=valgrind.supp -q"
sh -c "echo y | valgrind ${opts} $SHEEP_PROG $* -f -o 2>> ${dir}/sheep.log &"
@@ -198,7 +198,7 @@ _valgrind_sheep()
_valgrind_collie()
{
logfile=$(mktemp)
- valgrind --log-file=$logfile --error-exitcode=99 $COLLIE_PROG $*
+ valgrind --log-file=$logfile --error-exitcode=99 -q $COLLIE_PROG $*
ret=$?
if [ $ret == 99 ]; then
cat $logfile 1>&2
--
1.8.1.3.566.gaa39828
More information about the sheepdog
mailing list