Test for lttng-logger
[lttng-tools.git] / tests / utils / utils.sh
index c0d32aae5203d5d32ac1871e9d1a290bcd1d427c..3a619201f936d3ec3b9ea6a3f81beabcd9570c55 100644 (file)
@@ -1337,6 +1337,13 @@ function lttng_untrack_kernel_all_ok()
        ok $? "Lttng untrack all pid on the kernel domain"
 }
 
+function lttng_add_context_list()
+{
+       $TESTDIR/../src/bin/lttng/$LTTNG_BIN add-context --list 1> $OUTPUT_DEST 2> $ERROR_OUTPUT_DEST
+       ret=$?
+       ok $ret "Context listing"
+}
+
 function add_context_lttng()
 {
        local expected_to_fail="$1"
@@ -1512,7 +1519,7 @@ function validate_trace_only_exp()
        local total=$($BABELTRACE_BIN $trace_path | wc -l)
 
        if [ "$count" -ne 0 ] && [ "$total" -eq "$count" ]; then
-               pass "Trace match with $total for expression '${event_exp}"
+               pass "Trace match with $total for expression '${event_exp}'"
        else
                fail "Trace match"
                diag "$total syscall event(s) found, only syscalls matching expression '${event_exp}' ($count occurrences) are expected"
This page took 0.023296 seconds and 4 git commands to generate.