X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fstress%2Ftest_multi_sessions_per_uid_10app;h=90ef81963bfd57868726dc9682557176caae0388;hp=97ccab2d5907e542d8ba72942e7e35bd77d16bf3;hb=8192bd8fb712659b9204549f29d9a54dc2c57a9e;hpb=96340a015194538227efcbc654ec02c2ed9961ce diff --git a/tests/stress/test_multi_sessions_per_uid_10app b/tests/stress/test_multi_sessions_per_uid_10app index 97ccab2d5..90ef81963 100755 --- a/tests/stress/test_multi_sessions_per_uid_10app +++ b/tests/stress/test_multi_sessions_per_uid_10app @@ -43,7 +43,7 @@ function enable_channel_per_uid() function check_sessiond() { - if [ -z "$(pidof lt-lttng-sessiond)" ]; then + if [ -z "$(pgrep --full lt-lttng-sessiond)" ]; then local str_date=$(date +%H%M%S-%d%m%Y) diag "!!!The session daemon died unexpectedly!!!" @@ -65,7 +65,7 @@ function start_sessiond() BAIL_OUT "*** Kernel too old for session daemon tests ***" fi - if [ -z $(pidof lt-$SESSIOND_BIN) ]; then + if [ -z $(pgrep --full lt-$SESSIOND_BIN) ]; then # We have to start it like this so the ulimit -c is used by this # process. Also, we collect any error message printed out. $TESTDIR/../src/bin/lttng-sessiond/$SESSIOND_BIN --quiet --background --consumerd32-path="$TESTDIR/../src/bin/lttng-consumerd/lttng-consumerd" --consumerd64-path="$TESTDIR/../src/bin/lttng-consumerd/lttng-consumerd" >$LOG_FILE 2>&1 @@ -91,7 +91,7 @@ test_stress() for a in $(seq 1 $NR_SESSION); do stop_lttng_tracing_ok $SESSION_NAME-$a check_sessiond - destroy_lttng_session $SESSION_NAME-$a + destroy_lttng_session_ok $SESSION_NAME-$a check_sessiond done done