diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -58,6 +58,13 @@ t-expect-fail () { *) fail "tee failed" ;; esac + t-grep-mpat "$mpat" $tmp/t.output +} + +t-grep-mpat () { + local mpat="$1" + local file="$2" + local grepper=fgrep case "$mpat" in [A-Z]:*) @@ -70,8 +77,8 @@ t-expect-fail () { ;; esac - $grepper -e "$mpat" $tmp/t.output || - fail "error message not found" + $grepper -e "$mpat" "$file" || + fail "message not found" } t-expect-push-fail () { |