Welcome to mirror list, hosted at ThFree Co, Russian Federation.

valgrind-wrapper.sh « scripts « lemon-1.3.1 « 3rd « quadriflow « extern - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bbb122290660fc53469d4cec6509631215b9f3dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# Run in valgrind, with leak checking enabled

valgrind -q --leak-check=full "$@" 2> .valgrind-log

# Save the test result

result="$?"

# Valgrind should generate no error messages

log_contents="`cat .valgrind-log`"

if [ "$log_contents" != "" ]; then
        cat .valgrind-log >&2
        result=1
fi

rm -f .valgrind-log

exit $result