#!/bin/bash
#
-# Copyright (C) 2017 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
+# Copyright (C) 2017 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
#
# SPDX-License-Identifier: LGPL-2.1-only
#This is needed since the testpoint create a pipe with the consumerd type suffixed
TESTPOINT_BASE_PATH=$(readlink -f "$TMPDIR/lttng.t_p_n")
TESTPOINT_PIPE_PATH=$(mktemp -u "${TESTPOINT_BASE_PATH}.XXXXXX")
-TESTPOIT_ARGS="CONSUMER_PAUSE_PIPE_PATH=${TESTPOINT_PIPE_PATH} LTTNG_TESTPOINT_ENABLE=1"
TESTPOINT=$(readlink -f ${CURDIR}/.libs/libpause_consumer.so)
source $TESTDIR/utils/utils.sh
-function ust_event_generator_toogle_state
+function ust_event_generator_toggle_state
{
ust_event_generator_suspended=$((ust_event_generator_suspended==0))
{
state_file=$1
ust_event_generator_suspended=0
- trap ust_event_generator_toogle_state SIGUSR1
+ trap ust_event_generator_toggle_state SIGUSR1
while (true); do
if [[ $ust_event_generator_suspended -eq "1" ]]; then