fate: Force diff into text mode
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Sep 2013 21:54:01 +0000 (23:54 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 3 Sep 2013 23:02:06 +0000 (01:02 +0200)
On openbsd the exif-image-jpg test fails but diff treats the files as
binary due to some non ascii symbols in them. This should force it to
treat them as text, which should result in more informative output

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tests/fate-run.sh

index 52ddc22..71eff80 100755 (executable)
@@ -225,7 +225,7 @@ fi
 
 if test -e "$ref" || test $cmp = "oneline" ; then
     case $cmp in
-        diff)   diff -u -b "$ref" "$outfile"            >$cmpfile ;;
+        diff)   diff -u -a -b "$ref" "$outfile"         >$cmpfile ;;
         oneoff) oneoff     "$ref" "$outfile"            >$cmpfile ;;
         stddev) stddev     "$ref" "$outfile"            >$cmpfile ;;
         oneline)oneline    "$ref" "$outfile"            >$cmpfile ;;