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 <[email protected]> --- 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 } -- 1.7.10 _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
