diff options
Diffstat (limited to 'test/1337-gc-coverage/check')
-rwxr-xr-x | test/1337-gc-coverage/check | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/1337-gc-coverage/check b/test/1337-gc-coverage/check index 842bdc6ae8..67fcafbe6e 100755 --- a/test/1337-gc-coverage/check +++ b/test/1337-gc-coverage/check @@ -14,9 +14,12 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Inputs: +# $1: Test's expected standard output +# $2: Test's actual standard output +# $3: Test's expected standard error +# $4: Test's actual standard error + # Check that the string "error" isn't present -if grep error "$2"; then - exit 1 -else - exit 0 -fi +grep -vq error "$2" \ + && diff --strip-trailing-cr -q "$3" "$4" >/dev/null |