X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fvalgrind_ust-consumerd.sh;h=1b10772aada9b17ca4f998ad8c73bb2a454ccd51;hb=36c95a5e121f351f8733fedeeb2669cb4b8aef17;hp=53b1208ff38ae998d7533f4a7951aa515b87c1d4;hpb=9dc7b7ff797a5cbb1e9ffd59e053a04562f306c4;p=ust.git diff --git a/tests/valgrind_ust-consumerd.sh b/tests/valgrind_ust-consumerd.sh index 53b1208..1b10772 100755 --- a/tests/valgrind_ust-consumerd.sh +++ b/tests/valgrind_ust-consumerd.sh @@ -17,6 +17,11 @@ # You should have received a copy of the GNU General Public License # along with LTTng-UST. If not, see . +if ! which valgrind > /dev/null; then + echo "$0: Valgrind not found on the system." >/dev/stderr + exit 1; +fi + TESTDIR=$(dirname $0) source $TESTDIR/test_functions.sh @@ -40,7 +45,7 @@ UST_CONSUMERD_PID="$(<$pidfilepath)" okx usttrace -s $TESTDIR/basic/.libs/basic -kill -SIGTERM $UST_CONSUMERD_PID +kill -SIGTERM ${UST_CONSUMERD_PID} wait $! echo "Valgrind output is in $VALG_OUT"