[ltt-dev] [UST PATCH 3/3] Test for the presence of valgrind in the valgrind test
Mathieu Desnoyers
compudj at krystal.dyndns.org
Fri Feb 18 15:34:02 EST 2011
* Yannick Brosseau (yannick.brosseau at gmail.com) wrote:
> Signed-off-by: Yannick Brosseau <yannick.brosseau at gmail.com>
merged.
> ---
> 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 <http://www.gnu.org/licenses/>.
>
> +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
>
>
> _______________________________________________
> ltt-dev mailing list
> ltt-dev at lists.casi.polymtl.ca
> http://lists.casi.polymtl.ca/cgi-bin/mailman/listinfo/ltt-dev
>
--
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list