Commit | Line | Data |
---|---|---|
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 | ||
19 | TEST_DESC="Health check - Thread exit" | |
20 | ||
9e32c5c0 | 21 | SESSION_NAME="health_thread_exit" |
9e32c5c0 | 22 | SESSIOND_PRELOAD=".libs/libhealthexit.so" |
a33d2d4a MD |
23 | TEST_SUFFIX="EXIT" |
24 | CURDIR=$(dirname $(readlink -f $0)) | |
9e32c5c0 | 25 | |
f2bae05b 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. | |
34 | KILL_SIGNAL="SIGKILL" | |
35 | ||
a33d2d4a | 36 | source ${CURDIR}/test_health.sh |