echo -n "Validating registered apps: "
-listing=$($TESTDIR/../lttng/$LTTNG_BIN list -u)
+listing=$($TESTDIR/../src/bin/lttng/$LTTNG_BIN list -u)
reg_app_count=$(echo -n $listing | sed "s/$TEST_BIN_NAME/$TEST_BIN_NAME\n/g" | grep "$TEST_BIN_NAME" | wc -l)
if [ "$reg_app_count" -ne "$NR_ITER" ]; then
echo -e "$reg_app_count apps listed. Expected $NR_ITER \e[1;31mFAILED\e[0m"