From 009ec7e5d85b858452207fcb9bb7647c0eea99a2 Mon Sep 17 00:00:00 2001 From: Yannick Brosseau Date: Fri, 18 Feb 2011 16:57:43 -0500 Subject: [PATCH] Test for the presence of valgrind in the valgrind test Signed-off-by: Yannick Brosseau Signed-off-by: Mathieu Desnoyers --- tests/valgrind_ust-consumerd.sh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.34.1