projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Make test_per_application_leaks more robust
[lttng-tools.git]
/
tests
/
regression
/
tools
/
live
/
test_kernel
diff --git
a/tests/regression/tools/live/test_kernel
b/tests/regression/tools/live/test_kernel
index b622b52143d3bc4a740fb9e7a1ade7739dc60f19..df30fcf56242e940ec974af197414de788bf95fe 100755
(executable)
--- a/
tests/regression/tools/live/test_kernel
+++ b/
tests/regression/tools/live/test_kernel
@@
-16,7
+16,7
@@
DELAY_USEC=2000000
SESSION_NAME="live"
EVENT_NAME="lttng_test_filter_event"
SESSION_NAME="live"
EVENT_NAME="lttng_test_filter_event"
-TRACE_PATH=$(mktemp -
-tmpdir -d
tmp.test_live_kernel_trace_path.XXXXXX)
+TRACE_PATH=$(mktemp -
d -t
tmp.test_live_kernel_trace_path.XXXXXX)
DIR=$(readlink -f $TESTDIR)
DIR=$(readlink -f $TESTDIR)
@@
-39,13
+39,11
@@
function clean_live_tracing()
rm -rf $TRACE_PATH
}
rm -rf $TRACE_PATH
}
-# Need root access for kernel tracing.
-if [ "$(id -u)" == "0" ]; then
- isroot=1
-else
- plan_skip_all "Root access is needed. Skipping all tests."
+check_skip_kernel_test &&
+{
+ plan_skip_all "Skipping all tests."
exit 0
exit 0
-fi
+}
modprobe lttng-test
modprobe lttng-test
This page took
0.03658 seconds
and
4
git commands to generate.