fate: work around non-standard wc implementations
authorMans Rullgard <mans@mansr.com>
Tue, 15 May 2012 21:02:42 +0000 (22:02 +0100)
committerMans Rullgard <mans@mansr.com>
Wed, 16 May 2012 02:04:53 +0000 (03:04 +0100)
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@mansr.com>
tests/regression-funcs.sh

index 3889129..c6ca00b 100755 (executable)
@@ -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
 }