From bd4a17da0bc0f377d147cb6600c8fd35e18da52f Mon Sep 17 00:00:00 2001 From: clanmills Date: Thu, 16 Apr 2020 10:29:07 +0100 Subject: [PATCH] Use bdiff on unix --- test/functions.source | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/functions.source b/test/functions.source index 65567739..f81a50ee 100644 --- a/test/functions.source +++ b/test/functions.source @@ -226,7 +226,11 @@ diffCheck() if [ -z "$errors" ]; then let -a errors=0; fi #run diff and check results - diff -q --binary $diffargs "$test" "$good" + if [ $(uname) == FreeBSD -o $(uname) == NetBSD -o $(uname) == SunOS ]; then + bdiff $diffargs "$test" "$good" + else + diff --binary $diffargs "$test" "$good" + fi if [ $? -ne 0 ]; then errors=$(expr $errors + 1) else