From: Yannick Brosseau Date: Fri, 18 Feb 2011 21:57:43 +0000 (-0500) Subject: Test for the presence of valgrind in the valgrind test X-Git-Tag: v1.9.1~463 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=009ec7e5d85b858452207fcb9bb7647c0eea99a2;p=lttng-ust.git Test for the presence of valgrind in the valgrind test Signed-off-by: Yannick Brosseau Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/valgrind_ust-consumerd.sh b/tests/valgrind_ust-consumerd.sh index a0d9e443..d89a1f2c 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 [ -n "$(which valgrind)" ]; then + echo "$0: Valgrind not found on the system." >/dev/stderr + exit 1; +fi + TESTDIR=$(dirname $0) source $TESTDIR/test_functions.sh