projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Correct use of taskset in snapshot tests
[lttng-tools.git]
/
tests
/
regression
/
tools
/
notification
/
test_notification_kernel_capture
diff --git
a/tests/regression/tools/notification/test_notification_kernel_capture
b/tests/regression/tools/notification/test_notification_kernel_capture
index 9b6e7ac57bb7af46f1d210080debacbe6f83e811..b65310d8801a6a50c0261db12ad330ef7f6620a4 100755
(executable)
--- a/
tests/regression/tools/notification/test_notification_kernel_capture
+++ b/
tests/regression/tools/notification/test_notification_kernel_capture
@@
-7,10
+7,8
@@
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
-TMPDIR=$(mktemp -d)
-
TESTAPP_PATH="$TESTDIR/utils/testapp"
TESTAPP_PATH="$TESTDIR/utils/testapp"
-TESTAPP_STATE_PATH=$(mktemp -u
"$TMPDIR/
application_state.XXXXXXXXXX")
+TESTAPP_STATE_PATH=$(mktemp -u
-t "tmp.test_notif_kernel_capture_
application_state.XXXXXXXXXX")
NUM_TESTS=104
NUM_TESTS=104
@@
-33,23
+31,21
@@
function test_basic_error_path
}
}
-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_basic_error_path
+start_lttng_sessiond_notap
- stop_lttng_sessiond_notap
- rmmod lttng-test
+test_basic_error_path
-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
-# Just in case cleanup
-rm -rf "$TMPDIR"
+rm -f "$TESTAPP_STATE_PATH"
This page took
0.025587 seconds
and
4
git commands to generate.