Set libnice specific debug domains
[sipe-libnice.git] / scripts / valgrind.sh
blob1e25875d002399611ecc4dac1e61836b942b1540
1 #!/bin/sh
3 export G_SLICE=always-malloc
4 export G_DEBUG=gc-friendly
6 report=`libtool --mode=execute valgrind \
7 --leak-check=full \
8 --show-reachable=no \
9 --error-exitcode=1 \
10 $1 2>&1`
12 #if echo "$report" | grep -q ==; then
13 if test $? != 0; then
14 echo "$report"
15 exit 1
18 if echo "$report" | grep -q "definitely lost"; then
19 if ! echo "$report" | grep -q "definitely lost: 0 bytes"; then
20 echo "$report"
21 exit 1