LTTNG_BIN="$PWD/../../lttng/lttng"
#SESSIOND_ARGS="-c $SESSIOND_CLIENT_SOCK_PATH -a $SESSIOND_APPS_SOCK_PATH"
SESSIOND_ARGS=""
-SESSION_ID_REGEX="[[:alnum:]]{8}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{4}-[[:alnum:]]{12}"
+SESSION_ID_REGEX=".[[:alnum:]]{8}"
function clean_exit()
{
{
lttng_create_session "test-same"
lttng_create_session "test-same"
- if [ $LTTNG_RET_CODE -ne 1 ]; then
+ if [ $LTTNG_RET_CODE -ne 0 ]; then
echo "[-] Session with the same name: FAILED!"
printf "Two session having the same name NOT ALLOWED\n"
clean_exit 1