3 # Copyright (C) 2017 Jonathan Rajotte-Julien <jonathan.rajotte-julien@efficios.com>
5 # SPDX-License-Identifier: LGPL-2.1-only
7 CURDIR
=$
(dirname "$0")/
8 TESTDIR
=$CURDIR/..
/..
/..
/
10 TESTAPP_PATH
="$TESTDIR/utils/testapp"
11 TESTAPP_STATE_PATH
=$
(mktemp
-u -t "tmp.test_notif_kernel_capture_application_state.XXXXXXXXXX")
15 # shellcheck source=../../../utils/utils.sh
16 source "$TESTDIR/utils/utils.sh"
17 # shellcheck source=./util_event_generator.sh
18 source "$CURDIR/util_event_generator.sh"
20 function test_basic_error_path
22 kernel_event_generator_run_once_per_transition generate_filter_events \
23 "$TESTAPP_STATE_PATH" 10 &
26 "$CURDIR/notification" 7 LTTNG_DOMAIN_KERNEL
$APP_PID \
29 kill -SIGUSR2 $APP_PID
30 wait $APP_PID 2> /dev
/null
34 check_skip_kernel_test
&&
36 plan_skip_all
"Skipping all tests."
40 validate_lttng_modules_present
44 start_lttng_sessiond_notap
48 stop_lttng_sessiond_notap
51 rm -f "$TESTAPP_STATE_PATH"