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_syscall
diff --git
a/tests/regression/tools/notification/test_notification_kernel_syscall
b/tests/regression/tools/notification/test_notification_kernel_syscall
index d273cb55d5d6a8036bc36aabc86301c576047db1..c9a40d077a5967844cf4d9374f13c2b502da578b 100755
(executable)
--- a/
tests/regression/tools/notification/test_notification_kernel_syscall
+++ b/
tests/regression/tools/notification/test_notification_kernel_syscall
@@
-7,7
+7,7
@@
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
-TESTAPP_STATE_PATH=$(mktemp -
-tmpdir -u
"tmp.test_notif_kernel_syscall_application_state.XXXXXX")
+TESTAPP_STATE_PATH=$(mktemp -
u -t
"tmp.test_notif_kernel_syscall_application_state.XXXXXX")
NUM_TESTS=25
NUM_TESTS=25
@@
-31,19
+31,18
@@
function test_kernel_syscall_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
+}
- start_lttng_sessiond_notap
+validate_lttng_modules_present
- test_kernel_syscall_notification
+start_lttng_sessiond_notap
- stop_lttng_sessiond_notap
+test_kernel_syscall_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
rm -f "$TESTAPP_STATE_PATH"
rm -f "$TESTAPP_STATE_PATH"
This page took
0.02466 seconds
and
4
git commands to generate.