projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use compiler-agnostic defines to silence warning
[lttng-tools.git]
/
tests
/
regression
/
tools
/
notification
/
test_notification_kernel_instrumentation
diff --git
a/tests/regression/tools/notification/test_notification_kernel_instrumentation
b/tests/regression/tools/notification/test_notification_kernel_instrumentation
index ef4efbce7e94461a35be73720844a074899bdd9e..9a8d323a1371cabe3847047d9d4791489f7cd64b 100755
(executable)
--- a/
tests/regression/tools/notification/test_notification_kernel_instrumentation
+++ b/
tests/regression/tools/notification/test_notification_kernel_instrumentation
@@
-7,9
+7,7
@@
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
-TMPDIR=$(mktemp -d)
-
-TESTAPP_STATE_PATH=$(mktemp -u "$TMPDIR/application_state.XXXXXXXXXX")
+TESTAPP_STATE_PATH=$(mktemp -u -t "tmp.test_notif_kernel_instrumentation_application_state.XXXXXXXXXX")
NUM_TESTS=13
NUM_TESTS=13
@@
-30,22
+28,21
@@
function test_kernel_instrumentation_notification
wait $APP_PID 2> /dev/null
}
wait $APP_PID 2> /dev/null
}
-if [ "$(id -u)" == "0" ]; then
- validate_lttng_modules_present
+check_skip_kernel_test &&
+{
+ plan_skip_all "Skipping all tests."
+ exit 0
+}
-
modprobe lttng-tes
t
+
validate_lttng_modules_presen
t
- start_lttng_sessiond_notap
+modprobe lttng-test
- test_kernel_instrumentation_notification
+start_lttng_sessiond_notap
- stop_lttng_sessiond_notap
- rmmod lttng-test
+test_kernel_instrumentation_notification
-else
- # Kernel tests are skipped.
- plan_tests $NUM_TESTS
- skip 0 "Root access is needed. Skipping all kernel notification tests." $NUM_TESTS
-fi
+stop_lttng_sessiond_notap
+rmmod lttng-test
-rm -
rf "$TMPDIR
"
+rm -
f "$TESTAPP_STATE_PATH
"
This page took
0.025293 seconds
and
4
git commands to generate.