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