Skip to content

Commit 2cc5210

Browse files
committed
Fix to running valgrind reliably on AFS.
1 parent 39f426e commit 2cc5210

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

taskvine/test/TR_vine_valgrind.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ export CORES=4
88
export TASKS=20
99
export VALGRIND="valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=definite,indirect,possible --track-origins=yes --track-fds=yes"
1010

11+
# valgrind creates a named fifo in $PWD/temp.
12+
# This is not permitted when using AFS file system.
13+
# Change the location to /tmp in that case.
14+
15+
location=$(echo "pwd" | cut -d/ -f2)
16+
if $location eq afs
17+
then
18+
export VALGRIND="${VALGRIND} --vgdb-prefix=/tmp/valgrind-taskvine-fifo-$$"
19+
fi
20+
1121
check_needed()
1222
{
1323
if ! ${VALGRIND} --version > /dev/null 2>&1

0 commit comments

Comments
 (0)