Imported Upstream version 2.3.3
[platform/upstream/cryptsetup.git] / tests / valg.sh
1 #!/bin/sh
2 SUP="--suppressions=./cryptsetup-valg-supps"
3 CHILD="--trace-children=yes --child-silent-after-fork=yes"
4 MALLOC="--malloc-fill=aa"
5 FREE="--free-fill=21"
6 STACK="--max-stackframe=2000000"
7 EXTRAS="--read-var-info=yes --show-reachable=yes"
8 LOGFILE="--log-file=./valglog.$(date +%s)_${INFOSTRING}"
9 LEAKCHECK="--leak-check=full --track-origins=yes"
10
11 exec valgrind  $SUP $GETSUP $CHILD $MALLOC $FREE $STACK $EXTRAS $LOGFILE  $LEAKCHECK "$@"