fate: fix non-standard use of bc

Originally committed as revision 24651 to svn://svn.ffmpeg.org/ffmpeg/trunk
oldabi
Måns Rullgård 15 years ago
parent 5b60c29339
commit 61a187b081
  1. 2
      tests/fate-run.sh

@ -25,7 +25,7 @@ do_tiny_psnr(){
val=$(expr "$psnr" : ".*$3: *\([0-9.]*\)")
size1=$(expr "$psnr" : '.*bytes: *\([0-9]*\)')
size2=$(expr "$psnr" : '.*bytes:[ 0-9]*/ *\([0-9]*\)')
res=$(echo "$val $4 $5" | bc)
res=$(echo "if ($val $4 $5) 1" | bc)
if [ "$res" != 1 ] || [ $size1 != $size2 ]; then
echo "$psnr"
return 1

Loading…
Cancel
Save