Fix: syscall event rule: emission sites not compared in is_equal
[lttng-tools.git] / tests / regression / kernel / test_ns_contexts
index 1a25d8666801d7d7d3fc250e738758da502e2fd5..1c71ea503e998f26f2519675bfb4e32c3ef986fb 100755 (executable)
@@ -76,7 +76,7 @@ function test_ns()
        ns_inode=$(stat -c '%i' -L "/proc/$$/ns/$ns")
        ok $? "Get current $ns namespace inode: $ns_inode"
 
-       trace_path=$(mktemp -d)
+       trace_path=$(mktemp -d -t "tmp.${FUNCNAME[0]}_trace_path.XXXXXX")
 
        start_lttng_sessiond
 
@@ -108,13 +108,7 @@ plan_tests $NUM_TESTS
 print_test_banner "$TEST_DESC"
 
 
-isroot=0
-if [ "$(id -u)" == "0" ]; then
-       isroot=1
-fi
-
-skip $isroot "Root access is needed. Skipping all tests." "$NUM_TESTS" && exit 0
-
+check_skip_kernel_test "$NUM_TESTS" "Skipping all tests." && exit 0
 
 system_has_ns=0
 if [ -d "/proc/$$/ns" ]; then
This page took 0.024004 seconds and 4 git commands to generate.