Refactor: test: wrapper for destroy_lttng_session
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 24 Apr 2015 20:29:40 +0000 (16:29 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 26 Jun 2015 21:49:10 +0000 (17:49 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
41 files changed:
tests/regression/kernel/test_all_events
tests/regression/kernel/test_event_basic
tests/regression/kernel/test_syscall
tests/regression/tools/exclusion/test_exclusion
tests/regression/tools/filtering/test_invalid_filter
tests/regression/tools/filtering/test_unsupported_op
tests/regression/tools/filtering/test_valid_filter
tests/regression/tools/health/test_thread_ok
tests/regression/tools/live/test_lttng_kernel
tests/regression/tools/live/test_lttng_ust
tests/regression/tools/mi/test_mi
tests/regression/tools/save-load/test_load
tests/regression/tools/save-load/test_save
tests/regression/tools/snapshots/test_kernel
tests/regression/tools/snapshots/test_kernel_streaming
tests/regression/tools/snapshots/test_ust_streaming
tests/regression/tools/snapshots/ust_test
tests/regression/tools/streaming/test_high_throughput_limits
tests/regression/tools/streaming/test_kernel
tests/regression/tools/streaming/test_ust
tests/regression/tools/tracefile-limits/test_tracefile_count
tests/regression/tools/tracefile-limits/test_tracefile_size
tests/regression/ust/before-after/test_before_after
tests/regression/ust/buffers-pid/test_buffers_pid
tests/regression/ust/high-throughput/test_high_throughput
tests/regression/ust/java-jul/test_java_jul
tests/regression/ust/java-log4j/test_java_log4j
tests/regression/ust/low-throughput/test_low_throughput
tests/regression/ust/multi-session/test_multi_session
tests/regression/ust/nprocesses/test_nprocesses
tests/regression/ust/overlap/test_overlap
tests/regression/ust/periodical-metadata-flush/test_periodical_metadata_flush
tests/regression/ust/python-logging/test_python_logging
tests/regression/ust/test_event_basic
tests/regression/ust/test_event_perf
tests/regression/ust/test_event_tracef
tests/regression/ust/test_event_wildcard
tests/stress/test_multi_sessions_per_uid_10app
tests/stress/test_multi_sessions_per_uid_5app_streaming
tests/stress/test_multi_sessions_per_uid_5app_streaming_kill_relayd
tests/utils/utils.sh

index 9ea847b486a9ad3be28fa5b4fc9a0a33fa7fa8a0..50002f4d9be984e174d966b6a303bad14b2fcb22 100755 (executable)
@@ -37,7 +37,7 @@ function test_all_event()
 
        validate_trace "sched_switch" $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
index c57858af4a4258cba8708a95212f0f55dd3b7158..aeca02b687642a3efe54429a10c5046454bed77b 100755 (executable)
@@ -41,7 +41,7 @@ function test_event_basic()
        validate_trace "sched_process_exit" $TRACE_PATH
        validate_trace "sched_process_free" $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -62,7 +62,7 @@ function test_enable_after_start()
        validate_trace "sched_switch" $TRACE_PATH
        validate_trace "sched_process_exit" $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
index 95f6124553e45a428569a110f9345ac11fec1cc5..57adad905fca6ce4750bb6c59f534747482910e9 100755 (executable)
@@ -76,7 +76,7 @@ function test_syscall_simple_list()
        # ensure trace only contains those.
        validate_trace_only_exp "-e syscall_entry_$EVENT_NAME: -e compat_syscall_entry_$EVENT_NAME: -e syscall_exit_$EVENT_NAME: -e compat_syscall_exit_$EVENT_NAME:" $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -113,7 +113,7 @@ function test_syscall_simple_list_two()
        # ensure trace only contains those.
        validate_trace_only_exp "-e syscall_entry_$EVENT_NAME: -e compat_syscall_entry_$EVENT_NAME: -e syscall_exit_$EVENT_NAME: -e compat_syscall_exit_$EVENT_NAME: -e syscall_entry_$EVENT_NAME2: -e compat_syscall_entry_$EVENT_NAME2: -e syscall_exit_$EVENT_NAME2: -e compat_syscall_exit_$EVENT_NAME2:" $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -140,7 +140,7 @@ function test_syscall_single()
        # ensure trace only contains those.
        validate_trace_only_exp "-e syscall_entry_open: -e compat_syscall_entry_open: -e syscall_exit_open: -e compat_syscall_exit_open:" $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -170,7 +170,7 @@ function test_syscall_two()
        # ensure trace only contains those.
        validate_trace_only_exp "-e syscall_entry_open: -e compat_syscall_entry_open: -e syscall_exit_open: -e compat_syscall_exit_open: -e syscall_entry_close: -e compat_syscall_entry_close: -e syscall_exit_close: -e compat_syscall_exit_close:" $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -198,7 +198,7 @@ function test_syscall_all()
        validate_trace_exp "-e syscall_exit_close: -e compat_syscall_exit_close:" $TRACE_PATH
        # trace may contain other syscalls.
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -229,7 +229,7 @@ function test_syscall_all_disable_one()
        validate_trace_exp "-e syscall_entry_close: -e compat_syscall_entry_close:" $TRACE_PATH
        validate_trace_exp "-e syscall_exit_close: -e compat_syscall_exit_close:" $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -266,7 +266,7 @@ function test_syscall_all_disable_two()
        validate_trace_exp "-e syscall_entry_execve: -e compat_syscall_entry_execve:" $TRACE_PATH
        validate_trace_exp "-e syscall_exit_execve: -e compat_syscall_exit_execve:" $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -293,7 +293,7 @@ function test_syscall_enable_all_disable_all()
        # ensure nothing has been traced.
        validate_trace_empty $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -326,7 +326,7 @@ function test_syscall_enable_all_disable_all_enable_all()
        validate_trace_exp "-e syscall_exit_close: -e compat_syscall_exit_close:" $TRACE_PATH
        # trace may contain other syscalls.
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -357,7 +357,7 @@ function test_syscall_enable_all_disable_all_twice()
        # ensure nothing has been traced.
        validate_trace_empty $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -384,7 +384,7 @@ function test_syscall_enable_one_disable_one()
        # ensure nothing has been traced.
        validate_trace_empty $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -413,7 +413,7 @@ function test_syscall_enable_two_disable_two()
        # ensure nothing has been traced.
        validate_trace_empty $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -445,7 +445,7 @@ function test_syscall_enable_two_disable_one()
        # ensure trace only contains those.
        validate_trace_only_exp "-e syscall_entry_open: -e compat_syscall_entry_open: -e syscall_exit_open: -e compat_syscall_exit_open:" $TRACE_PATH
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -465,7 +465,7 @@ function test_syscall_disable_twice()
        # Second disable succeeds too, due to enabler semantic.
        lttng_disable_kernel_syscall_ok $SESSION_NAME "open"
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -485,7 +485,7 @@ function test_syscall_disable_all_twice()
        # Second disable succeeds too, due to enabler semantic.
        lttng_disable_kernel_syscall_ok $SESSION_NAME
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -504,7 +504,7 @@ function test_syscall_enable_unknown()
        # semantic.
        lttng_enable_kernel_syscall_ok $SESSION_NAME "thissyscallcannotexist"
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -522,7 +522,7 @@ function test_syscall_enable_all_enable_one()
        # Enabling an event already enabled succeeds, due to enabler semantic.
        lttng_enable_kernel_syscall_ok $SESSION_NAME "open"
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -541,7 +541,7 @@ function test_syscall_disable_all_disable_one()
        # Disabling an event already disabled fails.
        lttng_disable_kernel_syscall_fail $SESSION_NAME "open"
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -561,7 +561,7 @@ function test_syscall_enable_channel_disable_all()
        # it knowns about. Disable all succeeds if it finds no match.
        lttng_disable_kernel_syscall_ok $SESSION_NAME "-a" $CHANNEL_NAME
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
@@ -579,7 +579,7 @@ function test_syscall_enable_channel_disable_one()
        lttng_enable_kernel_channel_ok $SESSION_NAME $CHANNEL_NAME
        lttng_disable_kernel_syscall_fail $SESSION_NAME "open" $CHANNEL_NAME
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
index 0033c7ed51e4fd3d69fafddfe576328c90c3964a..b913994018311a779b56d0bbb261e4f845ba4da5 100755 (executable)
@@ -62,7 +62,7 @@ function test_exclusion
        stop_lttng_tracing_ok $SESSION_NAME
 
        # Destroy session
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        stats=`babeltrace $trace_path | $STATS_BIN --tracepoint $EV_EXCLUDE_NAME | grep -v index`
        if [ ! -z "$stats" ]; then
index c639ff172672b52154e8586586a7506a72340425..4ba4b8b400999e0a1971b9129e8b10f70d36d1fd 100755 (executable)
@@ -60,7 +60,7 @@ function test_invalid_filter
        enable_ust_lttng_event_filter $SESSION_NAME $EVENT_NAME "$test_invalid_filter"
 
        # Destroy session
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 function test_bytecode_limit
@@ -78,7 +78,7 @@ function test_bytecode_limit
        enable_ust_lttng_event_filter $SESSION_NAME $EVENT_NAME "$BYTECODE_LIMIT"
 
        # Destroy session
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 plan_tests $NUM_TESTS
index d60814922540bcb7bb45519ed042db83122bdace..0c8ceb7b076d9729999b873092d72ec8645964bc 100755 (executable)
@@ -78,7 +78,7 @@ function test_unsupported_op
        fi
 
        # Destroy session
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
        return 0
 }
 
index 42f32e70583aae15f03dc08241067cce7e322c08..df4eb47e3687a6245488c9b5c8bcd443538ee176 100755 (executable)
@@ -70,7 +70,7 @@ function test_valid_filter
        stop_lttng_tracing_ok $SESSION_NAME
 
        # Destroy session
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        stats=`babeltrace $trace_path | $STATS_BIN --tracepoint $EVENT_NAME`
 
index 5efe49fe1528653dedb3d9cee45448052ddf3bc1..ae4596ad73ee0f054f970ef0cb018be27550ec74 100755 (executable)
@@ -81,7 +81,7 @@ function test_thread_ok
        create_lttng_session_no_output $SESSION_NAME
        enable_ust_lttng_event_ok $SESSION_NAME $UST_EVENT_NAME $CHANNEL_NAME
        start_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Check health status
        $CURDIR/$HEALTH_CHECK_BIN > ${STDOUT_PATH} 2> ${STDERR_PATH}
@@ -93,7 +93,7 @@ function test_thread_ok
                create_lttng_session_no_output $SESSION_NAME
                lttng_enable_kernel_event $SESSION_NAME $KERNEL_EVENT_NAME $CHANNEL_NAME
                start_lttng_tracing_ok $SESSION_NAME
-               destroy_lttng_session $SESSION_NAME
+               destroy_lttng_session_ok $SESSION_NAME
 
                # Check health status
                $CURDIR/$HEALTH_CHECK_BIN > ${STDOUT_PATH} 2> ${STDERR_PATH}
index 084649f9bf99697a19bd4a936c05bf0f7a4eefad..98f3b9e9d2209c5403f4dd03c9638215e5b6738a 100755 (executable)
@@ -55,7 +55,7 @@ function setup_live_tracing()
 function clean_live_tracing()
 {
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 # Need root access for kernel tracing.
index bf66603f6b878b22841258638ac64f22e21e67ed..7d6cc93f1b5692229105a9f2222365fa9cb920d7 100755 (executable)
@@ -69,7 +69,7 @@ function setup_live_tracing()
 function clean_live_tracing()
 {
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 start_lttng_sessiond
index 5d2d4513f4d0f486a9043b8f5191604e76611702..515c040df77ce91d979b8887ea428fe121e569ab 100755 (executable)
@@ -151,7 +151,7 @@ function test_create_session ()
        is_command_success $OUTPUT_DEST true
 
        OUTPUT_DEST=$DEVNULL
-       destroy_lttng_session $session_name
+       destroy_lttng_session_ok $session_name
 }
 
 function test_destroy_session ()
@@ -170,7 +170,7 @@ function test_destroy_session ()
        done
 
        OUTPUT_DEST=$OUTPUT_DIR/$OUTPUT_FILE
-       destroy_lttng_session ${session_name[0]}
+       destroy_lttng_session_ok ${session_name[0]}
        $XML_VALIDATE $OUTPUT_DEST
        ok $? "MI test: destroy session ${session_name[0]} xsd validation"
 
@@ -191,7 +191,7 @@ function test_destroy_session ()
        ok $? "Mi test: $num / 2 sessions discovered"
 
        #Verify that if no session is present command fail and mi report it.
-       destroy_lttng_session ${session_name[0]} 1
+       destroy_lttng_session_fail ${session_name[0]}
        $XML_VALIDATE $OUTPUT_DEST
        ok $? "MI test: failing destroy session ${session_name[0]} xsd validation"
        extract_xml $OUTPUT_DEST $XPATH_COMMAND_SUCCESS result
index 6b892cfdc4e05bb02b2ced8fdd241d76842fc3f3..c6234efe1fce443e6f7573079db2f7e05b954983 100755 (executable)
@@ -54,7 +54,7 @@ function test_basic_load()
 
        lttng_load "-i $CURDIR/$SESSION_NAME.lttng"
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 function test_complex_load()
@@ -90,7 +90,7 @@ function test_complex_load()
        else
            fail "Disabled event is loaded in disabled state"
        fi
-       destroy_lttng_session $sess
+       destroy_lttng_session_ok $sess
 
        stop_lttng_relayd_nocheck
 }
@@ -105,8 +105,8 @@ function test_all_load()
 
        lttng_load "-a -i $CURDIR"
 
-       destroy_lttng_session $SESSION_NAME
-       destroy_lttng_session "$SESSION_NAME-complex"
+       destroy_lttng_session_ok $SESSION_NAME
+       destroy_lttng_session_ok "$SESSION_NAME-complex"
 
        stop_lttng_relayd_nocheck
 }
@@ -120,7 +120,7 @@ function test_overwrite()
        # This one should succeed
        lttng_load "-f -i $CURDIR $SESSION_NAME"
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 start_lttng_sessiond
index 299776fba121b29d9466d6105f8fd490aaed7c6d..674d00134a157cb08c05556bd71ce94c8795a223 100755 (executable)
@@ -73,7 +73,7 @@ function test_basic_save()
 
        is_session_saved $TRACE_PATH $SESSION_NAME
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 function test_basic_save_all()
@@ -98,9 +98,9 @@ function test_basic_save_all()
        is_session_saved $TRACE_PATH $SESSION_NAME-2
        is_session_saved $TRACE_PATH $SESSION_NAME-3
 
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-3
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-3
 }
 
 function test_overwrite()
@@ -115,7 +115,7 @@ function test_overwrite()
 
        is_session_saved $TRACE_PATH $SESSION_NAME
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Create a new session with same name so we can force the overwrite
        create_lttng_session_ok $SESSION_NAME $TRACE_PATH
@@ -130,7 +130,7 @@ function test_overwrite()
 
        is_session_saved $TRACE_PATH $SESSION_NAME
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 start_lttng_sessiond
index b4c7f9146e86f02ab7d84c82c6694e40a34e48d9..9dac4596b0ce222bcc72001f8a46e33d65f44cb5 100755 (executable)
@@ -45,7 +45,7 @@ function test_kernel_local_snapshot ()
        lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
        lttng_snapshot_record $SESSION_NAME
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/
@@ -67,7 +67,7 @@ function test_kernel_local_snapshot_after_stop ()
        stop_lttng_tracing_ok $SESSION_NAME
        lttng_snapshot_add_output $SESSION_NAME $TRACE_PATH
        lttng_snapshot_record $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/
@@ -115,7 +115,7 @@ function test_kernel_local_snapshot_append_to_metadata ()
        fi
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 function test_kernel_1000_local_snapshots ()
@@ -142,7 +142,7 @@ function test_kernel_1000_local_snapshots ()
                fi
        done
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 plan_tests $NUM_TESTS
index e37b8d464cf575a2e0c9ecfcde4ccef76ea4f68c..aa4c5b558af68d095e9dae5902989f37cfa2ce7c 100755 (executable)
@@ -78,7 +78,7 @@ function test_kernel_default_name_with_del()
        fi
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        return 0
 }
@@ -94,7 +94,7 @@ function test_kernel_default_name()
        snapshot_add_output $SESSION_NAME "net://localhost"
        lttng_snapshot_record $SESSION_NAME
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
        out=$?
@@ -116,7 +116,7 @@ function test_kernel_custom_name()
        snapshot_add_output $SESSION_NAME "net://localhost" $name
        lttng_snapshot_record $SESSION_NAME
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        if ls $TRACE_PATH/$HOSTNAME/$name* &> /dev/null; then
                ok 0 "Custom name snapshot exists"
index 4c93cb3db2765b6da05648a75cc8513e5dd64334..0ff78fddd4a67b8127935df13981c00a1cb337fe 100755 (executable)
@@ -119,7 +119,7 @@ function test_ust_default_name_with_del()
        fi
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        stop_test_apps
 
@@ -140,7 +140,7 @@ function test_ust_default_name()
        snapshot_add_output $SESSION_NAME "net://localhost"
        lttng_snapshot_record $SESSION_NAME
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
        out=$?
@@ -163,7 +163,7 @@ function test_ust_default_name_custom_uri()
        snapshot_add_output $SESSION_NAME "-C tcp://localhost:5342 -D tcp://localhost:5343"
        lttng_snapshot_record $SESSION_NAME
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/$HOSTNAME/snapshot-1*
        out=$?
@@ -190,7 +190,7 @@ function test_ust_custom_name()
        snapshot_add_output $SESSION_NAME "net://localhost" $name
        lttng_snapshot_record $SESSION_NAME
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        if ls $TRACE_PATH/$HOSTNAME/$name* &> /dev/null; then
                ok 0 "Custom name snapshot exists"
index 2401794eb2b3b767d96c71dd7cf4d67c0a9f15f7..271eb139246d6595bcaf5d859c387b40fb55b6d3 100755 (executable)
@@ -150,7 +150,7 @@ function test_ust_list_output ()
        ok $? "Snapshot named ${output_names[1]} present in list-output listing"
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 function test_ust_local_snapshot ()
@@ -167,7 +167,7 @@ function test_ust_local_snapshot ()
 
        lttng_snapshot_record $SESSION_NAME
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/
@@ -214,7 +214,7 @@ function test_ust_local_snapshot_max_size ()
        pass "Tracefiles size sum validation"
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/
@@ -244,7 +244,7 @@ function test_ust_local_snapshot_large_metadata ()
        ok $? "Start application to trace"
        lttng_snapshot_record $SESSION_NAME
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test
        validate_trace $LM_EVENT $TRACE_PATH/
@@ -277,7 +277,7 @@ function test_ust_per_uid_local_snapshot ()
 
        lttng_snapshot_record $SESSION_NAME
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/
@@ -304,7 +304,7 @@ function test_ust_per_uid_local_snapshot_post_mortem ()
 
        lttng_snapshot_record $SESSION_NAME
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test
        validate_trace $EVENT_NAME $TRACE_PATH/
@@ -338,7 +338,7 @@ function test_ust_local_snapshots ()
                fi
        done
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        stop_test_apps
 }
index f59ff053db757baa64d4eeb144aef7b78df773bf..32c3f1f2b939abc060b0e256bc87b37eb56d3269 100755 (executable)
@@ -106,7 +106,7 @@ function test_high_throughput
        wait
        pass "waiting done"
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
        validate_event_count
 }
 
index 68b7247b60feef9247e41472045340b85fbb09f7..d54bcedf52e995891e768a757f1da8d9e54e7d0c 100755 (executable)
@@ -51,7 +51,7 @@ function test_kernel_before_start ()
        # Give a second
        sleep 1
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 # Deactivated since this feature is not yet available where we can enable
@@ -65,7 +65,7 @@ function test_kernel_after_start ()
        # Give a second
        sleep 1
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 }
 
 plan_tests $NUM_TESTS
index 44b993355398513fedbe9027e6ca336a3973d36e..a5d5b5e9215191c7dab80b86b7741014cb63df1b 100755 (executable)
@@ -67,7 +67,7 @@ function test_ust_before_start ()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
        rm -f ${file_sync_after_first}
        rm -f ${file_sync_before_last}
 }
@@ -89,7 +89,7 @@ function test_ust_after_start ()
        done
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Wait for the applications started in background
        wait
index 8e2747afabe57baf1f467173427251cae0e8c7ae..4fe6ac36e3e8159da06cd2a2a70156df0c2ca1c3 100755 (executable)
@@ -122,7 +122,7 @@ function test_tracefile_count_limit ()
 
        stop_lttng_tracing_ok $session_name
 
-       destroy_lttng_session $session_name
+       destroy_lttng_session_ok $session_name
 
        # Validate tracing dir
 
index 0f07d7c915258da3fac5926fa7e8bf697263d987..9fe4637e6e19f167172cfd7f3caf8c1e82acdc02 100755 (executable)
@@ -114,7 +114,7 @@ function test_tracefile_size_limit ()
 
        stop_lttng_tracing_ok $session_name
 
-       destroy_lttng_session $session_name
+       destroy_lttng_session_ok $session_name
 
        # Validate file size, each one shall be no larger than the
        # specified size limit
index 80b5c76ad6c4958ef39cbf9e9af258b73a1fb7dd..45ef48fc366c82fc9934f7a8e5834020db00bdc9 100755 (executable)
@@ -47,7 +47,7 @@ function test_before_apps()
        ok $? "Traced application stopped."
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
 
@@ -73,7 +73,7 @@ function test_after_apps()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -f ${file_sync_after_first}
        rm -f ${file_sync_before_last}
index fad120ca312184a7dceb6110d06df1314bb2d918..94e6fe45f3a85b94f60202aea4e660b8be025d18 100755 (executable)
@@ -64,7 +64,7 @@ test_after_multiple_apps() {
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        trace_match_only $EVENT_NAME $[NR_ITER * 5] $TRACE_PATH
 
@@ -99,7 +99,7 @@ test_before_multiple_apps() {
        pass "Waiting done"
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        for i in `seq 1 5`; do
                rm -f ${file_sync_after_first}_${i}
@@ -136,7 +136,7 @@ test_after_app() {
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
 
@@ -166,7 +166,7 @@ test_before_app() {
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -f ${file_sync_after_first}
        rm -f ${file_sync_before_last}
@@ -218,7 +218,7 @@ test_multiple_channels() {
        trace_match_only $EVENT_NAME $[NR_ITER * 5] $TRACE_PATH
        out=$?
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        return $out
 }
index 89895fd92e552bea29158945e27b1411fa52d3b6..10adc8ceb01d60e1eb19aadd2f7606c0caa182a7 100755 (executable)
@@ -54,7 +54,7 @@ wait
 pass "Wait for applications to end"
 
 stop_lttng_tracing_ok $SESSION_NAME
-destroy_lttng_session $SESSION_NAME
+destroy_lttng_session_ok $SESSION_NAME
 
 stop_lttng_sessiond
 
index f4114fbe004e05609e6a395198d0126315a5a621..48c8b7401c7e5721d26223a6d10bed72ebf2d4d1 100755 (executable)
@@ -108,7 +108,7 @@ function test_jul_before_start ()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -f ${file_sync_after_first}
        rm -f ${file_sync_before_last}
@@ -132,7 +132,7 @@ function test_jul_after_start ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -153,7 +153,7 @@ function test_jul_loglevel ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -171,7 +171,7 @@ function test_jul_loglevel ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting 0 events.
        trace_match_only $EVENT_NAME 0 $TRACE_PATH
@@ -189,7 +189,7 @@ function test_jul_loglevel ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -209,7 +209,7 @@ function test_jul_loglevel_multiple ()
        run_app 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events times two.
        trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
@@ -226,7 +226,7 @@ function test_jul_loglevel_multiple ()
        run_app 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events times two.
        trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
@@ -252,8 +252,8 @@ function test_jul_multi_session_loglevel()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Expecting 6 events being the main event plus the second tp.
        trace_match_only $EVENT_NAME $(($NR_ITER + 1)) $TRACE_PATH/$SESSION_NAME-1
@@ -287,8 +287,8 @@ function test_jul_multi_session_disable()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Validate test. Expecting one event of the second TP.
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-1
@@ -322,8 +322,8 @@ function test_jul_multi_session_disable_wildcard()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Validate test. Expecting NO event of the first TP.
        trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME-1
@@ -354,7 +354,7 @@ function test_jul_disable_all()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting NO event of the first TP and second TP.
        trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME
@@ -381,8 +381,8 @@ function test_jul_multi_session()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Validate test. Expecting all events of first TP
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-1
@@ -412,7 +412,7 @@ function test_jul_destroy_session()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting at least one event num 1
        validate_trace $EVENT_NAME $TRACE_PATH/first-sess
@@ -431,7 +431,7 @@ function test_jul_destroy_session()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting only one event num 2
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/second-sess
@@ -453,7 +453,7 @@ function test_jul_filtering()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
@@ -471,7 +471,7 @@ function test_jul_filtering()
        run_app 1 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
@@ -495,7 +495,7 @@ function test_jul_disable()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
@@ -519,7 +519,7 @@ function test_jul_disable_enable()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
@@ -547,7 +547,7 @@ function test_jul_filter_loglevel()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting no events.
        trace_match_only $ALL_EVENTS 0 $TRACE_PATH/$SESSION_NAME
index 9fd059447d041081c661763307a009afe88a54c7..cdc0c4c34470c6751da5b9ebdfbc9af62c975825 100755 (executable)
@@ -109,7 +109,7 @@ function test_log4j_before_start ()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -f ${file_sync_after_first}
        rm -f ${file_sync_before_last}
@@ -133,7 +133,7 @@ function test_log4j_after_start ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -154,7 +154,7 @@ function test_log4j_loglevel ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -172,7 +172,7 @@ function test_log4j_loglevel ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting 0 events.
        trace_match_only $EVENT_NAME 0 $TRACE_PATH
@@ -190,7 +190,7 @@ function test_log4j_loglevel ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -210,7 +210,7 @@ function test_log4j_loglevel_multiple ()
        run_app 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events times two.
        trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
@@ -227,7 +227,7 @@ function test_log4j_loglevel_multiple ()
        run_app 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events times two.
        trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
@@ -253,8 +253,8 @@ function test_log4j_multi_session_loglevel()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Expecting 6 events being the main event plus the second tp.
        trace_match_only $EVENT_NAME $(($NR_ITER + 1)) $TRACE_PATH/$SESSION_NAME-1
@@ -288,8 +288,8 @@ function test_log4j_multi_session_disable()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Validate test. Expecting one event of the second TP.
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-1
@@ -323,8 +323,8 @@ function test_log4j_multi_session_disable_wildcard()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Validate test. Expecting NO event of the first TP.
        trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME-1
@@ -355,7 +355,7 @@ function test_log4j_disable_all()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting NO event of the first TP and second TP.
        trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME
@@ -382,8 +382,8 @@ function test_log4j_multi_session()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Validate test. Expecting all events of first TP
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-1
@@ -412,7 +412,7 @@ function test_log4j_destroy_session()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting at least one event num 1
        validate_trace $EVENT_NAME $TRACE_PATH/first-sess
@@ -430,7 +430,7 @@ function test_log4j_destroy_session()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting only one event num 2
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/second-sess
@@ -452,7 +452,7 @@ function test_log4j_filtering()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
@@ -470,7 +470,7 @@ function test_log4j_filtering()
        run_app 1 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
@@ -494,7 +494,7 @@ function test_log4j_disable()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
@@ -518,7 +518,7 @@ function test_log4j_disable_enable()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
@@ -546,7 +546,7 @@ function test_log4j_filter_loglevel()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting no events.
        trace_match_only $ALL_EVENTS 0 $TRACE_PATH/$SESSION_NAME
index a1948aa47f81c122bae26dd4e38d73019140fa72..4820485f7379adc45228d6f6e5e16865f00c670d 100755 (executable)
@@ -48,7 +48,7 @@ start_lttng_tracing_ok $SESSION_NAME
 ./$CURDIR/$BIN_NAME >/dev/null 2>&1
 
 stop_lttng_tracing_ok $SESSION_NAME
-destroy_lttng_session $SESSION_NAME
+destroy_lttng_session_ok $SESSION_NAME
 
 stop_lttng_sessiond
 
index 45da8d20497522fe4c97ed79b44cfb4f54c4433e..33b296bcf2b23b83a4a463af7577a5f01fc1dee0 100755 (executable)
@@ -49,7 +49,7 @@ test_multi_session() {
 
        for i in `seq 0 3`; do
                stop_lttng_tracing_ok "$SESSION_NAME-$i"
-               destroy_lttng_session "$SESSION_NAME-$i"
+               destroy_lttng_session_ok "$SESSION_NAME-$i"
                out=$(babeltrace "$TRACE_PATH/$i" | grep "$EVENT_NAMEi$i" | wc -l)
                if [ $out -ne $NR_ITER ]; then
                        fail "Trace validation of $SESSION_NAME-$i"
index 40da06839f976d37d320b532b788803b6aa3ca9e..7677cc6ccdff724094fe2b0145ae1e41bd7659e1 100755 (executable)
@@ -79,7 +79,7 @@ touch ${file_sync_before_last}
 # just that they registered to sessiond (above).
 
 stop_lttng_tracing_ok $SESSION_NAME
-destroy_lttng_session $SESSION_NAME
+destroy_lttng_session_ok $SESSION_NAME
 
 #TODO: add trace validation.
 
index 7a39332afe3b377ff19292e41d07e080e79a7588..69d6c66d2979c99c98c51cd72e0dba3f8e65438e 100755 (executable)
@@ -656,7 +656,7 @@ while [ "$i" -lt "$TEST_COUNT" ]; do
        # Execute test
        ${TESTS[$i]}
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 
index 25b93ec9ee3365ce3de32eac49691b4bffb2ae2f..ea6b93838cc8da145746d32203efaffeaf821f28 100755 (executable)
@@ -162,7 +162,7 @@ test_after_app_pid() {
                wait ${p} 2>/dev/null
        done
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        wait_trace_apps
 
@@ -209,7 +209,7 @@ test_before_app_pid() {
        done
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        wait_trace_apps
 
@@ -252,7 +252,7 @@ test_after_app_uid() {
                wait ${p} 2>/dev/null
        done
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        wait_trace_apps
 
@@ -297,7 +297,7 @@ test_before_app_uid() {
                wait ${p} 2>/dev/null
        done
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        wait_trace_apps
 
index 5917b9fff161a798829b2cb0156708751516d7da..e88c27f86264eb77ac342a79c8f8593ed707fdbb 100755 (executable)
@@ -102,7 +102,7 @@ function test_python_before_start ()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -123,7 +123,7 @@ function test_python_after_start ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -144,7 +144,7 @@ function test_python_loglevel ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -162,7 +162,7 @@ function test_python_loglevel ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting 0 events.
        trace_match_only $EVENT_NAME 0 $TRACE_PATH
@@ -180,7 +180,7 @@ function test_python_loglevel ()
        run_app
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
@@ -200,7 +200,7 @@ function test_python_loglevel_multiple ()
        run_app 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events times two.
        trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
@@ -217,7 +217,7 @@ function test_python_loglevel_multiple ()
        run_app 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting all events times two.
        trace_match_only $EVENT_NAME $(($NR_ITER * 2)) $TRACE_PATH
@@ -243,8 +243,8 @@ function test_python_multi_session_loglevel()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Expecting NR_ITER events being the main event and the second tp one.
        trace_matches $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-1
@@ -282,8 +282,8 @@ function test_python_multi_session_disable()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Validate test. Expecting one event of the second TP.
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME-1
@@ -317,8 +317,8 @@ function test_python_multi_session_disable_wildcard()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Validate test. Expecting NO event of the first TP.
        trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME-1
@@ -349,7 +349,7 @@ function test_python_disable_all()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting NO event of the first TP and second TP.
        trace_match_only $EVENT_NAME 0 $TRACE_PATH/$SESSION_NAME
@@ -376,8 +376,8 @@ function test_python_multi_session()
 
        stop_lttng_tracing_ok $SESSION_NAME-1
        stop_lttng_tracing_ok $SESSION_NAME-2
-       destroy_lttng_session $SESSION_NAME-1
-       destroy_lttng_session $SESSION_NAME-2
+       destroy_lttng_session_ok $SESSION_NAME-1
+       destroy_lttng_session_ok $SESSION_NAME-2
 
        # Validate test. Expecting all events of first TP
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME-1
@@ -407,7 +407,7 @@ function test_python_destroy_session()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting at least one event num 1
        validate_trace $EVENT_NAME $TRACE_PATH/first-sess
@@ -426,7 +426,7 @@ function test_python_destroy_session()
        wait
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting only one event num 2
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/second-sess
@@ -448,7 +448,7 @@ function test_python_filtering()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
@@ -466,7 +466,7 @@ function test_python_filtering()
        run_app 1 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
@@ -490,7 +490,7 @@ function test_python_disable()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting one event of the second TP only.
        trace_match_only $EVENT_NAME2 1 $TRACE_PATH/$SESSION_NAME
@@ -514,7 +514,7 @@ function test_python_disable_enable()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting NR_ITER event of the main INFO tp.
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH/$SESSION_NAME
@@ -542,7 +542,7 @@ function test_python_filter_loglevel()
        run_app 0 1
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        # Validate test. Expecting no events.
        trace_match_only $ALL_EVENTS 0 $TRACE_PATH/$SESSION_NAME
index df86d2914d88991886e1b85f63a5b588b529925c..31931a977b094a7bb373dd3e7358f061460299cc 100755 (executable)
@@ -100,8 +100,8 @@ function test_event_basic()
        ok 0 "Validate trace"
        unset TODO
 
-       destroy_lttng_session $SESSION_NAME2
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME2
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
index 8bdff2c7b4f167f76c9bdf7093e2cdefd9068452..7fb37edfeb1ff67a4dada6711384ac6c6a1a5b6d 100755 (executable)
@@ -72,7 +72,7 @@ function test_event_basic()
 
        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
index a3344227f516427951d072ec98384956eaa0c366..1aa2ff426be2720e17828a97ef0d6dc102b31169 100755 (executable)
@@ -45,7 +45,7 @@ function test_event_tracef()
        ok $? "Traced application stopped."
 
        stop_lttng_tracing_ok $SESSION_NAME
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        trace_match_only $EVENT_NAME $NR_ITER $TRACE_PATH
 
index 2cb562f0fd8e9385cec8e983604a4f00fb24dd7d..1c0b27a654d2e26640164213e6884404dad2e964 100755 (executable)
@@ -49,7 +49,7 @@ function test_event_wildcard()
        ok 0 "Validate trace"
        unset TODO
 
-       destroy_lttng_session $SESSION_NAME
+       destroy_lttng_session_ok $SESSION_NAME
 
        rm -rf $TRACE_PATH
 }
index 97ccab2d5907e542d8ba72942e7e35bd77d16bf3..c25e303b03e38690fe0d61a2aec9fb60e83b3d01 100755 (executable)
@@ -91,7 +91,7 @@ test_stress()
                for a in $(seq 1 $NR_SESSION); do
                        stop_lttng_tracing_ok $SESSION_NAME-$a
                        check_sessiond
-                       destroy_lttng_session $SESSION_NAME-$a
+                       destroy_lttng_session_ok $SESSION_NAME-$a
                        check_sessiond
                done
        done
index 1eafbd84ca521fbd70b3f89ddd5c3de05a03673f..760e2222e53232b50d43f03c2638aef20b124c5e 100755 (executable)
@@ -129,7 +129,7 @@ test_stress()
                        stop_lttng_tracing_ok $SESSION_NAME-$a
                        check_sessiond
                        check_relayd
-                       destroy_lttng_session $SESSION_NAME-$a
+                       destroy_lttng_session_ok $SESSION_NAME-$a
                        check_sessiond
                        check_relayd
                done
index 60d7071f8726888a5eb3f69724ea33daca545ab2..3b26ba7a8301d461ad8c615b760e4300156e2560 100755 (executable)
@@ -131,7 +131,7 @@ test_stress()
                        stop_lttng_tracing_ok $SESSION_NAME-$a
                        check_sessiond
                        check_relayd
-                       destroy_lttng_session $SESSION_NAME-$a
+                       destroy_lttng_session_ok $SESSION_NAME-$a
                        check_sessiond
                        check_relayd
                done
index 067a4f53224b71a93c536331466564ce78950484..454627eaae3ad6115b598f3067d1f81410899631 100644 (file)
@@ -711,8 +711,8 @@ function stop_lttng_tracing_fail ()
 
 function destroy_lttng_session ()
 {
-       local sess_name=$1
-       local expected_to_fail=$2
+       local expected_to_fail=$1
+       local sess_name=$2
 
        $TESTDIR/../src/bin/lttng/$LTTNG_BIN destroy $sess_name >$OUTPUT_DEST
        ret=$?
@@ -724,6 +724,18 @@ function destroy_lttng_session ()
        fi
 }
 
+function destroy_lttng_session_ok ()
+{
+       destroy_lttng_session 0 "$@"
+
+}
+
+function destroy_lttng_session_fail ()
+{
+       destroy_lttng_session 1 "$@"
+}
+
+
 function destroy_lttng_sessions ()
 {
        $TESTDIR/../src/bin/lttng/$LTTNG_BIN destroy --all >$OUTPUT_DEST
This page took 0.090669 seconds and 4 git commands to generate.