aboutsummaryrefslogtreecommitdiffstats
path: root/tests/fate-run.sh
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-08-01 15:28:42 +0000
committerMåns Rullgård <mans@mansr.com>2010-08-01 15:28:42 +0000
commit61a187b08177e827ee94b35cd43daa4f78101dd9 (patch)
tree662726d8d8d5464aeb75444a14dd41d892dc9540 /tests/fate-run.sh
parent5b60c29339537af027ef1df6b2e0386558b43273 (diff)
downloadffmpeg-61a187b08177e827ee94b35cd43daa4f78101dd9.tar.gz
fate: fix non-standard use of bc
Originally committed as revision 24651 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'tests/fate-run.sh')
-rwxr-xr-xtests/fate-run.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fate-run.sh b/tests/fate-run.sh
index 045a96818c..3ed4765819 100755
--- a/tests/fate-run.sh
+++ b/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