.gitignore: ignore local vscode workspace settings file
[lttng-tools.git] / tests / perf / test_perf_raw.in
index f293ccd71e5ece6f3821cdc04513f7cb882df76c..00cdebc5567d1cccdc0ee9ddd13022040f382fc2 100644 (file)
@@ -64,7 +64,7 @@ function test_ust_raw()
                return
        fi
 
-       TRACE_PATH=$(mktemp --tmpdir -d "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
+       TRACE_PATH=$(mktemp -d -t "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
 
        create_lttng_session_ok $SESSION_NAME $TRACE_PATH
 
@@ -114,7 +114,7 @@ function test_kernel_raw()
                return
        fi
 
-       TRACE_PATH=$(mktemp --tmpdir -d "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
+       TRACE_PATH=$(mktemp -d -t "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
 
        create_lttng_session_ok $SESSION_NAME $TRACE_PATH
 
@@ -137,12 +137,6 @@ function test_kernel_raw()
        rm -rf $TRACE_PATH
 }
 
-if [ "$(id -u)" == "0" ]; then
-       isroot=1
-else
-       isroot=0
-fi
-
 # MUST set TESTDIR before calling those functions
 plan_tests $NUM_TESTS
 
@@ -154,7 +148,7 @@ have_libpfm
 
 test_ust_raw
 
-skip $isroot "Root access is needed for kernel testing, skipping." 9 ||
+check_skip_kernel_test 9 ||
 {
        modprobe lttng-test
        test_kernel_raw
This page took 0.026755 seconds and 4 git commands to generate.