From mboxrd@z Thu Jan 1 00:00:00 1970 From: yannick.brosseau@gmail.com (Yannick Brosseau) Date: Fri, 18 Feb 2011 12:59:40 -0500 Subject: [ltt-dev] [UST PATCH 3/3] Test for the presence of valgrind in the valgrind test In-Reply-To: <1298051980-20312-1-git-send-email-yannick.brosseau@gmail.com> References: <1298051980-20312-1-git-send-email-yannick.brosseau@gmail.com> Message-ID: <1298051980-20312-3-git-send-email-yannick.brosseau@gmail.com> Signed-off-by: Yannick Brosseau --- tests/valgrind_ust-consumerd.sh | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/tests/valgrind_ust-consumerd.sh b/tests/valgrind_ust-consumerd.sh index a0d9e44..d89a1f2 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 -- 1.7.2.3