projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: tests: name all temporary files to better identify leakage
[lttng-tools.git]
/
tests
/
destructive
/
metadata-regeneration
diff --git
a/tests/destructive/metadata-regeneration
b/tests/destructive/metadata-regeneration
index dcb102ff4ae2eafc109092566170141ff8488cd7..b81e7af32d22d1c1614f8c55409392d61e28711f 100755
(executable)
--- a/
tests/destructive/metadata-regeneration
+++ b/
tests/destructive/metadata-regeneration
@@
-18,7
+18,7
@@
TESTDIR=$CURDIR/..
NUM_TESTS=44
SESSION_NAME="regen"
KERNEL_EVENT_NAME="lttng_test_filter_event"
NUM_TESTS=44
SESSION_NAME="regen"
KERNEL_EVENT_NAME="lttng_test_filter_event"
-TRACE_PATH=$(mktemp -
d
)
+TRACE_PATH=$(mktemp -
-tmpdir -d -t tmp.metadata_regen_after_data_change.XXXXXX
)
TESTAPP_PATH="$TESTDIR/utils/testapp"
TESTAPP_NAME="gen-ust-events"
TESTAPP_PATH="$TESTDIR/utils/testapp"
TESTAPP_NAME="gen-ust-events"
@@
-109,8
+109,8
@@
function test_kernel_streaming ()
function test_ust_local ()
{
function test_ust_local ()
{
- local file_sync_after_first=$(mktemp -
u
)
- local file_sync_before_last=$(mktemp -
u
)
+ local file_sync_after_first=$(mktemp -
-tmpdir -u -t "tmp.${FUNCNAME[0]}_sync_after_first.XXXXXX"
)
+ local file_sync_before_last=$(mktemp -
-tmpdir -u -t "tmp.${FUNCNAME[0]}_sync_before_last.XXXXXX"
)
diag "Test UST local with metadata regeneration"
date "+%Y-%m-%d %H:%M" -s "$DATE1 $HOUR" >/dev/null
diag "Test UST local with metadata regeneration"
date "+%Y-%m-%d %H:%M" -s "$DATE1 $HOUR" >/dev/null
@@
-147,8
+147,8
@@
function test_ust_local ()
function test_ust_streaming ()
{
function test_ust_streaming ()
{
- local file_sync_after_first=$(mktemp -
u
)
- local file_sync_before_last=$(mktemp -
u
)
+ local file_sync_after_first=$(mktemp -
-tmpdir -u -t "tmp.${FUNCNAME[0]}_sync_after_first.XXXXXX"
)
+ local file_sync_before_last=$(mktemp -
-tmpdir -u -t "tmp.${FUNCNAME[0]}_sync_before_last.XXXXXX"
)
diag "Test UST streaming with metadata regeneration"
date "+%Y-%m-%d %H:%M" -s "$DATE1 $HOUR" >/dev/null
diag "Test UST streaming with metadata regeneration"
date "+%Y-%m-%d %H:%M" -s "$DATE1 $HOUR" >/dev/null
@@
-205,7
+205,7
@@
skip $isroot "Root access is needed. Skipping all tests." $NUM_TESTS ||
modprobe lttng-test
test_kernel_local
test_kernel_streaming
modprobe lttng-test
test_kernel_local
test_kernel_streaming
-
rmmod
lttng-test
+
modprobe --remove
lttng-test
test_ust_local
test_ust_streaming
test_ust_local
test_ust_streaming
This page took
0.023693 seconds
and
4
git commands to generate.