From 61a187b08177e827ee94b35cd43daa4f78101dd9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A5ns=20Rullg=C3=A5rd?= Date: Sun, 1 Aug 2010 15:28:42 +0000 Subject: [PATCH] fate: fix non-standard use of bc Originally committed as revision 24651 to svn://svn.ffmpeg.org/ffmpeg/trunk --- tests/fate-run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fate-run.sh b/tests/fate-run.sh index 045a968..3ed4765 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 -- 2.7.4