Test fix: Don't invoke the system's lttng client
[lttng-tools.git] / tests / regression / tools / mi / test_mi
index b70450e331ff0b22019bab679ae45e3b65bb6259..e690822b5661ad3938c3ba43fe6ec3cdbc8fdc07 100755 (executable)
@@ -32,6 +32,7 @@ NR_USEC_WAIT=10000
 
 #Temp file output
 OUTPUT_DIR=$(mktemp -d)
+FOO_LOAD_DIR=$(mktemp -d)
 OUTPUT_FILE="default.xml"
 
 #Path to custom xml utilities
@@ -522,9 +523,8 @@ function test_list_ust_event ()
        test "$num" -eq "12"
        ok $? "Mi test: $num / 12 ust event fields discovered"
 
-       #Wait for last forked process
-       wait $!
-
+       #Wait for all background processes
+       wait
 }
 
 function test_start_stop () {
@@ -602,7 +602,6 @@ function test_start_stop () {
        #Teardown
        OUTPUT_DEST=$DEVNULL
        destroy_lttng_sessions
-
 }
 
 function test_snapshot () {
@@ -683,7 +682,7 @@ function test_snapshot () {
        destroy_lttng_sessions
 }
 
-start_lttng_sessiond
+start_lttng_sessiond $FOO_LOAD_DIR
 TESTS=(
        test_version
        test_create_session
This page took 0.025006 seconds and 5 git commands to generate.