~ubuntu-core-dev/module-init-tools/ubuntu

« back to all changes in this revision

Viewing changes to tests/valgrind/valgrindme.sh

  • Committer: Scott James Remnant
  • Date: 2009-07-16 15:24:17 UTC
  • mfrom: (152.1.38)
  • Revision ID: scott@netsplit.com-20090716152417-7ak1sklxb59cs4fz
MergeĀ 3.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
 
 
3
# Make sure it finds the real one this time.
 
4
PATH=`pwd`/tests/build:$PATH
 
5
valgrind -q --num-callers=8 --suppressions=tests/valgrind/suppressions --log-fd=3 `basename $0` "$@" 3>tests/tmp/valgrind
 
6
ret=$?
 
7
 
 
8
if [ -s tests/tmp/valgrind ]; then
 
9
    echo VALGRIND FAILED for $0 "$@" > /proc/$PPID/fd/1
 
10
    cat tests/tmp/valgrind > /proc/$PPID/fd/1
 
11
    kill $PPID
 
12
    exit 1
 
13
fi
 
14
exit $ret