Skip to content

Commit

Permalink
use valgrind
Browse files Browse the repository at this point in the history
  • Loading branch information
btovar committed Dec 9, 2024
1 parent a4d1686 commit e4d3a1f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions taskvine/test/TR_vine_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,14 @@ print_logs_on_error()
run()
{

export VALGRIND="valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=definite,indirect,possible --track-origins=yes --track-fds=yes"
export VALGRIND="valgrind --log-file=manager.valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=definite,indirect,possible --track-origins=yes --track-fds=yes"
if ! which valgrind
then
export VALGRIND=
fi

trap "print_logs_on_error" EXIT
( ${VALGRIND} --log-file manager.valgrind ${CCTOOLS_PYTHON_TEST_EXEC} vine_python.py $PORT_FILE; echo $? > $STATUS_FILE ) &
( ${VALGRIND} ${CCTOOLS_PYTHON_TEST_EXEC} vine_python.py $PORT_FILE; echo $? > $STATUS_FILE ) &

# wait at most 15 seconds for vine to find a port.
wait_for_file_creation $PORT_FILE 15
Expand Down

0 comments on commit e4d3a1f

Please sign in to comment.