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
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