mirror of
git://anongit.mindrot.org/openssh.git
synced 2024-12-22 10:00:14 +00:00
Put valgrind vgdb files to a specific directory.
Valgrind by default puts vgdb files and pipes under /tmp, however it is not always able to clean them up, which can cause test failures when there's a pid/file collision. Using a specific directory ensures that we can clean up and start clean.
This commit is contained in:
parent
f8829fe57f
commit
8a5bb3e781
@ -152,8 +152,8 @@ SFTPSERVER_BIN=${SFTPSERVER}
|
||||
SCP_BIN=${SCP}
|
||||
|
||||
if [ "x$USE_VALGRIND" != "x" ]; then
|
||||
mkdir -p $OBJ/valgrind-out
|
||||
rm -f $OBJ/valgrind-out/*
|
||||
rm -rf $OBJ/valgrind-out $OBJ/valgrind-vgdb
|
||||
mkdir -p $OBJ/valgrind-out $OBJ/valgrind-vgdb
|
||||
# ensure agent low-priv tests can write logs.
|
||||
chmod 777 $OBJ/valgrind-out
|
||||
VG_TEST=`basename $SCRIPT .sh`
|
||||
@ -174,6 +174,7 @@ if [ "x$USE_VALGRIND" != "x" ]; then
|
||||
VG_OPTS="--track-origins=yes $VG_LEAK"
|
||||
VG_OPTS="$VG_OPTS --trace-children=yes"
|
||||
VG_OPTS="$VG_OPTS --trace-children-skip=${VG_IGNORE}"
|
||||
VG_OPTS="$VG_OPTS --vgdb-prefix=$OBJ/valgrind-vgdb/"
|
||||
VG_PATH="valgrind"
|
||||
if [ "x$VALGRIND_PATH" != "x" ]; then
|
||||
VG_PATH="$VALGRIND_PATH"
|
||||
|
Loading…
Reference in New Issue
Block a user