+function test_ust_streaming_no_event ()
+{
+ local tracing_active=$1
+ local clear_twice=$2
+ #local rotate_before=$3 ignored
+ #local rotate_after=$4
+ local buffer_type=uid
+ local local_path="${TRACE_PATH}/${HOSTNAME}/${SESSION_NAME}*"
+ local channel_name="chan"
+
+ diag "Test ust streaming clear no event"
+ diag "Parameters: tracing_active=$tracing_active, clear_twice=$clear_twice, rotate_before=$rotate_before, rotate_after=$rotate_after, buffer_type=$buffer_type"
+ create_lttng_session_uri $SESSION_NAME net://localhost
+ enable_ust_lttng_channel_ok $SESSION_NAME $channel_name --buffers-$buffer_type
+ enable_ust_lttng_event_ok $SESSION_NAME $EVENT_NAME $channel_name
+ start_lttng_tracing_ok $SESSION_NAME
+
+ do_clear_session $SESSION_NAME "$tracing_active" "$clear_twice" "$rotate_before" "$rotate_after"
+ stop_lttng_tracing_ok $SESSION_NAME
+
+ validate_directory_empty "$local_path"
+
+ destroy_lttng_session_ok $SESSION_NAME
+}
+