mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-28 00:04:30 +02:00
disable valgrind memleak checking by default
Add VALGRIND_CHECK_LEAKS knob to turn it back on.
This commit is contained in:
parent
79c9d35018
commit
d20720d373
@ -163,9 +163,13 @@ if [ "x$USE_VALGRIND" != "x" ]; then
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [ x"$VG_SKIP" = "x" ]; then
|
if [ x"$VG_SKIP" = "x" ]; then
|
||||||
|
VG_LEAK="--leak-check=no"
|
||||||
|
if [ x"$VALGRIND_CHECK_LEAKS" = "x" ]; then
|
||||||
|
VG_LEAK="--leak-check=full"
|
||||||
|
fi
|
||||||
VG_IGNORE="/bin/*,/sbin/*,/usr/*,/var/*"
|
VG_IGNORE="/bin/*,/sbin/*,/usr/*,/var/*"
|
||||||
VG_LOG="$OBJ/valgrind-out/${VG_TEST}."
|
VG_LOG="$OBJ/valgrind-out/${VG_TEST}."
|
||||||
VG_OPTS="--track-origins=yes --leak-check=full"
|
VG_OPTS="--track-origins=yes $VG_LEAK"
|
||||||
VG_OPTS="$VG_OPTS --trace-children=yes"
|
VG_OPTS="$VG_OPTS --trace-children=yes"
|
||||||
VG_OPTS="$VG_OPTS --trace-children-skip=${VG_IGNORE}"
|
VG_OPTS="$VG_OPTS --trace-children-skip=${VG_IGNORE}"
|
||||||
VG_PATH="valgrind"
|
VG_PATH="valgrind"
|
||||||
|
@ -8,9 +8,13 @@ test "x$OBJ" = "x" && OBJ=$PWD
|
|||||||
|
|
||||||
# This mostly replicates the logic in test-exec.sh for running the
|
# This mostly replicates the logic in test-exec.sh for running the
|
||||||
# regress tests under valgrind.
|
# regress tests under valgrind.
|
||||||
|
VG_LEAK="--leak-check=no"
|
||||||
|
if [ x"$VALGRIND_CHECK_LEAKS" = "x" ]; then
|
||||||
|
VG_LEAK="--leak-check=full"
|
||||||
|
fi
|
||||||
VG_TEST=`basename $UNIT_BINARY`
|
VG_TEST=`basename $UNIT_BINARY`
|
||||||
VG_LOG="$OBJ/valgrind-out/${VG_TEST}.%p"
|
VG_LOG="$OBJ/valgrind-out/${VG_TEST}.%p"
|
||||||
VG_OPTS="--track-origins=yes --leak-check=full --log-file=${VG_LOG}"
|
VG_OPTS="--track-origins=yes $VG_LEAK --log-file=${VG_LOG}"
|
||||||
VG_OPTS="$VG_OPTS --trace-children=yes"
|
VG_OPTS="$VG_OPTS --trace-children=yes"
|
||||||
VG_PATH="valgrind"
|
VG_PATH="valgrind"
|
||||||
if [ "x$VALGRIND_PATH" != "x" ]; then
|
if [ "x$VALGRIND_PATH" != "x" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user