blob: ad8a8ff4788db784340fbe12b0039a0256759132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
set -e
export G_SLICE=always-malloc
report=`valgrind \
-q \
--leak-check=full \
--show-reachable=no \
--error-exitcode=1 \
$1 2>&1`
if echo "$report" | grep -q ==; then
echo "$report"
exit 1
fi
|