abbea57f4165547e4d2cec41b7c043c46654caf6
[lttng-tools.git] / tests / regression / tools / health / test_tp_fail
1 #!/bin/bash
2 #
3 # Copyright (C) - 2012 Christian Babeux <christian.babeux@efficios.com>
4 # Copyright (C) - 2014 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
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
19 TEST_DESC="Health check - Testpoint failure"
20
21 SESSION_NAME="health_tp_fail"
22 SESSIOND_PRELOAD=".libs/libhealthtpfail.so"
23 TEST_SUFFIX="TP_FAIL"
24 CURDIR=$(dirname $(readlink -f $0))
25
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.
34 KILL_SIGNAL="SIGKILL"
35
36 source ${CURDIR}/test_health.sh
This page took 0.031027 seconds and 4 git commands to generate.