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
/
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 62c1e74d77995d5b2c2a5ade15dfe552aa155ac3..d273cb55d5d6a8036bc36aabc86301c576047db1 100755
(executable)
--- a/
tests/regression/tools/notification/test_notification_kernel_syscall
+++ b/
tests/regression/tools/notification/test_notification_kernel_syscall
@@
-7,9
+7,7
@@
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
-TMPDIR=$(mktemp -d)
-
-TESTAPP_STATE_PATH=$(mktemp -u "$TMPDIR/application_state.XXXXXXXXXX")
+TESTAPP_STATE_PATH=$(mktemp --tmpdir -u "tmp.test_notif_kernel_syscall_application_state.XXXXXX")
NUM_TESTS=25
NUM_TESTS=25
@@
-48,5
+46,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
-# Just in case cleanup
-rm -rf "$TMPDIR"
+rm -f "$TESTAPP_STATE_PATH"
This page took
0.02324 seconds
and
4
git commands to generate.