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/..
/..
/..
/
12 TESTAPP_PATH
="$TESTDIR/utils/testapp"
13 TESTAPP_STATE_PATH
=$
(mktemp
-u "$TMPDIR/application_state.XXXXXXXXXX")
17 # shellcheck source=../../../utils/utils.sh
18 source "$TESTDIR/utils/utils.sh"
20 function test_basic_error_path
22 $CURDIR/notification
1 LTTNG_DOMAIN_KERNEL
26 if [ "$(id -u)" == "0" ]; then
27 validate_lttng_modules_present
31 start_lttng_sessiond_notap
35 stop_lttng_sessiond_notap
39 # Kernel tests are skipped.
41 skip
0 "Root access is needed. Skipping all kernel notification tests." $NUM_TESTS
44 # Just in case cleanup