tests: add and use bt_grep
[babeltrace.git] / tests / plugins / src.ctf.fs / fail / test-fail.sh
index ee9e954191b9d9afa360d212ad46427bb9272f25..c15e067ecfab219bd79ac37e73195b4b3773244f 100755 (executable)
@@ -41,10 +41,10 @@ test_fail() {
        # even if Babeltrace aborts (e.g. hits an assert).  Check that the
        # Babeltrace CLI finishes gracefully by checking that the error stream
        # contains an error stack printed by the CLI.
-       grep --silent "^CAUSED BY " "${stderr_file}"
+       bt_grep --silent "^CAUSED BY " "${stderr_file}"
        ok $? "Trace ${name}: babeltrace produces an error stack"
 
-       grep --silent "${expected_error_msg}" "${stderr_file}"
+       bt_grep --silent "${expected_error_msg}" "${stderr_file}"
        ok $? "Trace ${name}: babeltrace produces the expected error message"
 }
 
This page took 0.024137 seconds and 4 git commands to generate.