summaryrefslogtreecommitdiff
path: root/tests/regression-funcs.sh
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-05-15 22:02:42 +0100
committerMans Rullgard <mans@mansr.com>2012-05-16 03:04:53 +0100
commited7409fe9da8da941cdc91e8d86cb8b77ef8038e (patch)
tree7e8bf03f8cdc4b2644cd40bc41207ff8e279ecd4 /tests/regression-funcs.sh
parent6797d1948b1dff634eafce402d96f05393af7edc (diff)
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@mansr.com>
Diffstat (limited to 'tests/regression-funcs.sh')
-rwxr-xr-xtests/regression-funcs.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/regression-funcs.sh b/tests/regression-funcs.sh
index 3889129009..c6ca00b2aa 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
}