Tests: use babeltrace2 for all tests
[lttng-tools.git] / tests / regression / tools / crash / test_crash
index 73e1e4f694816762aaad5a7f52dd7ab6c42bc774..7570ba9b96864de9eeb43f7707222147d4e0e4ca 100755 (executable)
@@ -23,7 +23,7 @@ OUTPUT_DIR=$(mktemp -d --tmpdir tmp.test_crash_shm.XXXXXX)
 
 LAST_APP_PID=
 
-NUM_TESTS=77
+NUM_TESTS=76
 
 source $TESTDIR/utils/utils.sh
 
@@ -35,6 +35,8 @@ plan_tests $NUM_TESTS
 
 print_test_banner "$TEST_DESC"
 
+bail_out_if_no_babeltrace
+
 function start_test_app()
 {
        local tmp_file=$(mktemp --tmpdir -u "tmp.${FUNCNAME[0]}.XXXXXX")
@@ -136,12 +138,10 @@ function test_shm_path_per_pid()
 
        start_test_app
        second_app_pid=$LAST_APP_PID
-       second_pid_path=$(find $shm_session_path/ust/pid -mindepth 1 -maxdepth 1)
-       ok $? "Pid path exist found $second_pid_path"
 
        file_count=$(find $shm_session_path/ust/pid -mindepth 1 -maxdepth 1 | wc -l)
        test $file_count -eq "2"
-       ok $? "Expect 2 pid registration folder got $file_count"
+       ok $? "Expect 2 pid registration folders got $file_count"
 
        # Stop first test application and check for cleanup
        stop_test_app "$first_app_pid"
This page took 0.023471 seconds and 4 git commands to generate.