Fix: update regression tests involving UST
[lttng-tools.git] / tests / regression / tools / mi / test_mi
index fa46b514ef90d98dfee68b220be3d9afd81eb4c1..ccf92363f12e4e776eead53cfc3c26705f243527 100755 (executable)
@@ -63,7 +63,7 @@ source $TESTDIR/utils/utils.sh
 #Overwrite the lttng_bin to get mi output
 LTTNG_BIN="lttng --mi xml"
 
-#Global devlaration for simplification
+#Global declaration for simplification
 LTTNG=$TESTDIR/../src/bin/lttng/$LTTNG_BIN
 
 #Overwrite the default output for utils.sh command
@@ -511,11 +511,11 @@ function test_list_ust_event ()
        $XML_VALIDATE $OUTPUT_DEST
        ok $? "Mi test: list ust event xsd validation"
 
-       #Extract events 3 events should be present
+       #Extract events 5 events should be present
        extract_xml $OUTPUT_DEST "$XPATH_LIST_UST_EVENT""/name/text()" result
        num=$(echo "$result" | wc -l)
-       test "$num" -eq "3"
-       ok $? "Mi test: $num / 3 ust events discovered"
+       test "$num" -eq "5"
+       ok $? "Mi test: $num / 5 ust events discovered"
 
        #Extract field from tp:tptest event. Expect 12
        extract_xml $OUTPUT_DEST "$XPATH_LIST_UST_EVENT""[./name = 'tp:tptest']/event_fields/event_field/name/text()" result
@@ -523,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 () {
@@ -603,7 +602,6 @@ function test_start_stop () {
        #Teardown
        OUTPUT_DEST=$DEVNULL
        destroy_lttng_sessions
-
 }
 
 function test_snapshot () {
This page took 0.024208 seconds and 4 git commands to generate.