[FFmpeg-cvslog] fate: work around non-standard wc implementations
Mans Rullgard
git at videolan.org
Wed May 16 22:36:02 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Tue May 15 22:02:42 2012 +0100| [ed7409fe9da8da941cdc91e8d86cb8b77ef8038e] | committer: Mans Rullgard
fate: work around non-standard wc implementations
On some systems, the wc command prints spaces before the first
number causing mismatches with the test references. Using the
output of wc as arguments to echo removes any extra whitespace.
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ed7409fe9da8da941cdc91e8d86cb8b77ef8038e
---
tests/regression-funcs.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/regression-funcs.sh b/tests/regression-funcs.sh
index 3889129..c6ca00b 100755
--- a/tests/regression-funcs.sh
+++ b/tests/regression-funcs.sh
@@ -67,7 +67,7 @@ do_avconv()
elif [ $f = $pcm_dst ] ; then
$tiny_psnr $f $pcm_ref 2
else
- wc -c $f
+ echo $(wc -c $f)
fi
}
@@ -82,7 +82,7 @@ do_avconv_nomd5()
elif [ $f = $pcm_dst ] ; then
$tiny_psnr $f $pcm_ref 2
else
- wc -c $f
+ echo $(wc -c $f)
fi
}
More information about the ffmpeg-cvslog
mailing list