Use diff(1) instead of cmp(1) to compare files

This commit is contained in:
Pierre Pronchery 2016-08-23 03:09:19 +02:00
parent febcb13fd3
commit f441e4243f

View File

@ -17,10 +17,9 @@
#variables
DEVNULL="/dev/null"
PROGNAME="appbroker.sh"
#executables
CMP="cmp"
DIFF="diff"
DEBUG="_debug"
MKTEMP="mktemp"
RM="rm -f"
@ -35,7 +34,7 @@ expected="${interface%.interface}.expected"
$OBJDIR../tools/AppBroker$EXEEXT -o "$tmpfile" "$interface"
ret=$?
if [ $ret -eq 0 ]; then
$CMP -- "$tmpfile" "$expected" #> "$DEVNULL"
$DIFF -- "$tmpfile" "$expected"
ret=$?
fi
$RM -- "$tmpfile"