Commit 3d800a57 authored by Martijn van Beurden's avatar Martijn van Beurden Committed by Erik de Castro Lopo

Make test_compression a little more forgiving

The retune of compression levels makes this test fail. This is due
to a few approximations used in the encoder that determine which
LP coefficient should result in the smallest file. Differences are
usually very small, but in my case this resulted in compression
level 6 giving a 3 byte bigger file.

This patch lets the compression test pass even if the a compression
level results in a file that is up to 10 byte larger than the
previous level
Signed-off-by: Erik de Castro Lopo's avatarErik de Castro Lopo <erikd@mega-nerd.com>
parent 02891daa
......@@ -39,7 +39,7 @@ for k in 0 1 2 3 4 5 6 7 8 ; do
echo "Error : Compression ${last_k} size $last_size >= compression $k size $size."
exit 1
fi
last_size=${size}
let last_size=${size}+10
last_k=${k}
rm -f ${fname}
done
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment