1#!/bin/sh 2 3. ./functions.sh 4 5echo "NFSv${VERS} Basic valgrind check of timeout handling." 6 7start_share 8 9touch "${TESTDIR}/testfile" 10for IDX in `seq 1 28`; do 11 echo -n "Test memory leaks at socket event ${IDX} ... " 12 TIMEOUT_START=${IDX} LD_PRELOAD=./ld_timeout.so libtool --mode=execute valgrind --leak-check=full --error-exitcode=1 ./prog_timeout "${TESTURL}/testfile?version=${VERS}" >/dev/null 2>&1 || failure 13 success 14done 15 16stop_share 17 18exit 0 19