Tests: use SIGKILL to shutdown daemons in test_thread_exit and test_tp_fail
[lttng-tools.git] / tests / regression / tools / health / test_thread_exit
CommitLineData
9e32c5c0
CB
1#!/bin/bash
2#
3# Copyright (C) - 2012 Christian Babeux <christian.babeux@efficios.com>
a33d2d4a 4# Copyright (C) - 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9e32c5c0
CB
5#
6# This program is free software; you can redistribute it and/or modify it
7# under the terms of the GNU General Public License, version 2 only, as
8# published by the Free Software Foundation.
9#
10# This program is distributed in the hope that it will be useful, but WITHOUT
11# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13# more details.
14#
15# You should have received a copy of the GNU General Public License along with
16# this program; if not, write to the Free Software Foundation, Inc., 51
17# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
19TEST_DESC="Health check - Thread exit"
20
9e32c5c0 21SESSION_NAME="health_thread_exit"
9e32c5c0 22SESSIOND_PRELOAD=".libs/libhealthexit.so"
a33d2d4a
MD
23TEST_SUFFIX="EXIT"
24CURDIR=$(dirname $(readlink -f $0))
9e32c5c0 25
d9ab3385
JG
26# A current design limitation of the lttng-consumerd will cause it to
27# hang on shutdown if the timer management thread exits as the teardown
28# of channels switches off the channel's timers. The timer thread is
29# then expected to purge timer signals and signal when it is done.
30# Obviously this state will never be reached as signals are no longer
31# being processed. This is not dramatic as this is not what this test
32# is meant to test; we only want to make sure the health check signals that
33# something went wrong.
34KILL_SIGNAL="SIGKILL"
35
a33d2d4a 36source ${CURDIR}/test_health.sh
This page took 0.045388 seconds and 5 git commands to generate.