Test for the presence of valgrind in the valgrind test
[ust.git] / tests / valgrind_ust-consumerd.sh
index 53b1208ff38ae998d7533f4a7951aa515b87c1d4..d89a1f2cfd5c7d59d20a6e1502174693e30dd860 100755 (executable)
 #    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
@@ -40,7 +45,7 @@ UST_CONSUMERD_PID="$(<$pidfilepath)"
 
 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"
This page took 0.022973 seconds and 4 git commands to generate.