projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tests: add a recording rule listing test
[lttng-tools.git]
/
tests
/
regression
/
kernel
/
test_lttng_logger
diff --git
a/tests/regression/kernel/test_lttng_logger
b/tests/regression/kernel/test_lttng_logger
index c0e2f71b4085f2723cf9a88fe20a6787125b6ca8..849428807d944ce5787d68f4486dd41a0ad319be 100755
(executable)
--- a/
tests/regression/kernel/test_lttng_logger
+++ b/
tests/regression/kernel/test_lttng_logger
@@
-19,7
+19,7
@@
function test_proc_logger()
{
diag "Test /proc/lttng-logger"
{
diag "Test /proc/lttng-logger"
-
TRACE_PATH=$(mktemp -d
)
+
local TRACE_PATH=$(mktemp -d -t "tmp.${FUNCNAME[0]}_trace_path.XXXXXX"
)
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
@@
-50,7
+50,7
@@
function test_dev_logger()
{
diag "Test /dev/lttng-logger"
{
diag "Test /dev/lttng-logger"
-
TRACE_PATH=$(mktemp -d
)
+
local TRACE_PATH=$(mktemp -d -t "tmp.${FUNCNAME[0]}_trace_path.XXXXXX"
)
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
@@
-81,7
+81,7
@@
function test_payload_limit()
{
diag "Test lttng-logger payload limit"
{
diag "Test lttng-logger payload limit"
-
TRACE_PATH=$(mktemp -d
)
+
local TRACE_PATH=$(mktemp -d -t "tmp.${FUNCNAME[0]}_trace_path.XXXXXX"
)
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
create_lttng_session_ok $SESSION_NAME $TRACE_PATH
@@
-118,6
+118,7
@@
fi
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
{
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
{
+ validate_lttng_modules_present
start_lttng_sessiond
test_proc_logger
start_lttng_sessiond
test_proc_logger
This page took
0.023525 seconds
and
4
git commands to generate.