X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=tests%2Fregression%2Fust%2Flibc-wrapper%2Ftest_libc-wrapper;h=14d227f29b915561c6a99c26b4070b75e8f377fd;hb=7cd988f06d15559d0e455f519cc8da814696462e;hp=8c6b1282689a1bdf4ca296d875df498eec248765;hpb=5836cdc2ccafa85a1813d5740133e8b652cfa7e3;p=lttng-tools.git diff --git a/tests/regression/ust/libc-wrapper/test_libc-wrapper b/tests/regression/ust/libc-wrapper/test_libc-wrapper index 8c6b12826..14d227f29 100755 --- a/tests/regression/ust/libc-wrapper/test_libc-wrapper +++ b/tests/regression/ust/libc-wrapper/test_libc-wrapper @@ -1,4 +1,4 @@ -#!/bin/sh +#!/bin/bash # # Copyright (C) - 2013 Jérémie Galarneau # @@ -15,21 +15,13 @@ # this program; if not, write to the Free Software Foundation, Inc., 51 # Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -# Check for a running sessiond -`pidof lt-lttng-sessiond` -STOP_SESSIOND=$? - CURDIR=$(dirname $0) TESTDIR=${CURDIR}/../../.. -# Try to launch a sessiond before invoking the python test script -if [ $STOP_SESSIOND -ne 0 ]; then - DIR=$(readlink -f ${TESTDIR}) - ${DIR}/../src/bin/lttng-sessiond/lttng-sessiond --daemonize --quiet --consumerd32-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$DIR/../src/bin/lttng-consumerd/lttng-consumerd" -fi +source $TESTDIR/utils/utils.sh + +start_lttng_sessiond_notap python3 ${CURDIR}/test_libc-wrapper.py -if [ $STOP_SESSIOND -ne 0 ]; then - kill `pidof lt-lttng-sessiond` -fi +stop_lttng_sessiond_notap