test: UST tracing destroy flush behavior with tracefile rotation
[lttng-tools.git] / tests / regression / ust / test_event_perf
index 478ffb4e6f34e96b16889eb1eb7799eb273ae2d7..7dc21681fd26deb291e10724f8a68fd6d368bf25 100755 (executable)
@@ -66,13 +66,13 @@ function test_event_basic()
 
        add_ust_lttng_context $SESSION_NAME $CHAN_NAME "perf:thread:page-fault"
 
-       start_lttng_tracing
+       start_lttng_tracing_ok
 
        $TESTAPP_BIN $NR_ITER $NR_USEC_WAIT >/dev/null 2>&1
 
-       stop_lttng_tracing
+       stop_lttng_tracing_ok
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        validate_trace "perf_thread_page_fault" $TRACE_PATH
        rm -rf $TRACE_PATH
@@ -90,8 +90,17 @@ plan_tests $NUM_TESTS
 
 print_test_banner "$TEST_DESC"
 
-start_lttng_sessiond
+if [ "$(id -u)" == "0" ]; then
+        isroot=1
+else
+        isroot=0
+fi
+
+skip $isroot "Root access is needed. Skipping UST perf tests." ${NUM_TESTS} ||
+{
+       start_lttng_sessiond
 
-test_event_basic
+       test_event_basic
 
-stop_lttng_sessiond
+       stop_lttng_sessiond
+}
This page took 0.024499 seconds and 4 git commands to generate.