7 VALGRIND_VERSION=$(valgrind --version)
8 VALGRIND_MAJOR=$(expr "$VALGRIND_VERSION" : '[^0-9]*\([0-9]*\)')
9 VALGRIND_MINOR=$(expr "$VALGRIND_VERSION" : '[^0-9]*[0-9]*\.\([0-9]*\)')
10 test 3 -gt "$VALGRIND_MAJOR" ||
11 test 3 -eq "$VALGRIND_MAJOR" -a 4 -gt "$VALGRIND_MINOR" ||
12 TRACK_ORIGINS=--track-origins=yes
14 exec valgrind -q --error-exitcode=126 \
16 --suppressions="$GIT_VALGRIND/suppressions" \
17 --gen-suppressions=all \
21 $GIT_VALGRIND_OPTIONS \
22 "$GIT_VALGRIND"/../../"$base" "$@"