projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: container-wrapper: size container operation can throw
[lttng-tools.git]
/
tests
/
regression
/
tools
/
notification
/
test_notification_kernel_buffer_usage
diff --git
a/tests/regression/tools/notification/test_notification_kernel_buffer_usage
b/tests/regression/tools/notification/test_notification_kernel_buffer_usage
index 17b8d765d3043b43b71bf805b5c58c8113028ad1..5a87583dcd1198d803dac3f9a251eb3ea938bd5b 100755
(executable)
--- a/
tests/regression/tools/notification/test_notification_kernel_buffer_usage
+++ b/
tests/regression/tools/notification/test_notification_kernel_buffer_usage
@@
-7,13
+7,16
@@
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
-TMPDIR=$(mktemp -d)
+TEST_TMPDIR=$(mktemp -d -t tmp.test_notif_kernel_buffer_usage_dir.XXXXXX)
+
+# Set TMPDIR for further call to mktemp
+export TMPDIR="$TEST_TMPDIR"
#This is needed since the testpoint create a pipe with the consumerd type suffixed
#This is needed since the testpoint create a pipe with the consumerd type suffixed
-TESTPOINT_BASE_PATH=$(readlink -f "$TMPDIR/lttng.t_p_n")
-TESTPOINT_PIPE_PATH=$(mktemp -u
"${TESTPOINT_BASE_PATH}
.XXXXXX")
+TESTPOINT_BASE_PATH=$(readlink -f "$T
EST_T
MPDIR/lttng.t_p_n")
+TESTPOINT_PIPE_PATH=$(mktemp -u
-t "lttng.t_p_n
.XXXXXX")
TESTPOINT=$(readlink -f "${CURDIR}/.libs/libpause_consumer.so")
TESTPOINT=$(readlink -f "${CURDIR}/.libs/libpause_consumer.so")
-TESTAPP_STATE_PATH=$(mktemp -u
"$TMPDIR/
application_state.XXXXXXXXXX")
+TESTAPP_STATE_PATH=$(mktemp -u
-t "
application_state.XXXXXXXXXX")
SESSION_NAME="my_session"
SESSION_NAME="my_session"
@@
-33,7
+36,7
@@
function test_buffer_usage_notification
local page_size
local consumerd_pipe=()
local page_size
local consumerd_pipe=()
- trace_path=$(mktemp -d)
+ trace_path=$(mktemp -d
-t "tmp.${FUNCNAME[0]}_trace_path.XXXXXXX"
)
page_size=$(getconf PAGE_SIZE)
create_lttng_session_notap $SESSION_NAME "$trace_path"
page_size=$(getconf PAGE_SIZE)
create_lttng_session_notap $SESSION_NAME "$trace_path"
@@
-85,4
+88,4
@@
else
skip 0 "Root access is needed. Skipping all kernel notification tests." $NUM_TESTS
fi
skip 0 "Root access is needed. Skipping all kernel notification tests." $NUM_TESTS
fi
-rm -rf "$TMPDIR"
+rm -rf "$T
EST_T
MPDIR"
This page took
0.024008 seconds
and
4
git commands to generate.