Tests: wording of trace_matches is misleading
[lttng-tools.git] / tests / utils / utils.sh
index 1f116a6d66134d2115db8dcd838e4077338376e0..4dc37db646e4432cd16a15f312c026cff43b0b8f 100644 (file)
@@ -88,7 +88,7 @@ function validate_kernel_version ()
 function randstring()
 {
        [ "$2" == "0" ] && CHAR="[:alnum:]" || CHAR="[:graph:]"
-       cat /dev/urandom | tr -cd "$CHAR" | head -c ${1:-16}
+       cat /dev/urandom 2>/dev/null | tr -cd "$CHAR" 2>/dev/null | head -c ${1:-16} 2>/dev/null
        echo
 }
 
@@ -783,7 +783,7 @@ function trace_matches ()
 
        if [ "$count" -ne "$nr_iter" ]; then
                fail "Trace match"
-               diag "$count events found in trace"
+               diag "$count matching events found in trace"
        else
                pass "Trace match"
        fi
This page took 0.024687 seconds and 4 git commands to generate.