# 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 ! which valgrind > /dev/null; then
+ echo "$0: Valgrind not found on the system." >/dev/stderr
+ exit 1;
+fi
+
TESTDIR=$(dirname $0)
source $TESTDIR/test_functions.sh
okx usttrace -s $TESTDIR/basic/.libs/basic
-kill -SIGTERM $UST_CONSUMERD_PID
+kill -SIGTERM ${UST_CONSUMERD_PID}
wait $!
echo "Valgrind output is in $VALG_OUT"