X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftools%2Fnotification%2Ftest_notification_kernel_error;h=80fe6e5b51d62ab0cdadf6e6e914afb59a21735f;hb=7539dcec4401832f0557f85daf6c8564615170f6;hp=746f98112ff8a8f4684b6a0c3492efbbf9cbcfeb;hpb=8ed7657397c11d728beeb044d377f9f0d8fd5159;p=lttng-tools.git diff --git a/tests/regression/tools/notification/test_notification_kernel_error b/tests/regression/tools/notification/test_notification_kernel_error index 746f98112..80fe6e5b5 100755 --- a/tests/regression/tools/notification/test_notification_kernel_error +++ b/tests/regression/tools/notification/test_notification_kernel_error @@ -7,10 +7,8 @@ CURDIR=$(dirname "$0")/ TESTDIR=$CURDIR/../../../ -TMPDIR=$(mktemp -d) - TESTAPP_PATH="$TESTDIR/utils/testapp" -TESTAPP_STATE_PATH=$(mktemp -u "$TMPDIR/application_state.XXXXXXXXXX") +TESTAPP_STATE_PATH=$(mktemp --tmpdir -u "tmp.test_notif_kernel_error_application_state.XXXXXXXXXX") NUM_TESTS=44 @@ -51,5 +49,4 @@ else 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"