| 1 | #!/bin/bash |
| 2 | # |
| 3 | # SPDX-FileCopyrightText: 2012 Christian Babeux <[email protected]> |
| 4 | # SPDX-FileCopyrightText: 2014 Mathieu Desnoyers <[email protected]> |
| 5 | # |
| 6 | # SPDX-License-Identifier: GPL-2.0-only |
| 7 | |
| 8 | CURDIR=$(dirname $(readlink -f $0)) |
| 9 | TESTDIR=${CURDIR}/../../.. |
| 10 | source $TESTDIR/utils/utils.sh |
| 11 | |
| 12 | check_skip_long_regression_tests && { |
| 13 | plan_skip_all "Long regression tests disabled" |
| 14 | exit 0 |
| 15 | } |
| 16 | |
| 17 | TEST_DESC="Health check - Testpoint failure" |
| 18 | |
| 19 | SESSION_NAME="health_tp_fail" |
| 20 | SESSIOND_PRELOAD=".libs/libhealthtpfail.so" |
| 21 | TEST_SUFFIX="TP_FAIL" |
| 22 | |
| 23 | # A current design limitation of the lttng-consumerd will cause it to |
| 24 | # hang on shutdown if the timer management thread exits as the teardown |
| 25 | # of channels switches off the channel's timers. The timer thread is |
| 26 | # then expected to purge timer signals and signal when it is done. |
| 27 | # Obviously this state will never be reached as signals are no longer |
| 28 | # being processed. This is not dramatic as this is not what this test |
| 29 | # is meant to test; we only want to make sure the health check signals that |
| 30 | # something went wrong. |
| 31 | KILL_SIGNAL="SIGKILL" |
| 32 | |
| 33 | source ${CURDIR}/test_health.sh |