diff options
author | Martijn van Beurden <mvanb1@gmail.com> | 2014-10-22 20:54:13 +0200 |
---|---|---|
committer | Erik de Castro Lopo <erikd@mega-nerd.com> | 2014-11-11 06:20:08 -0800 |
commit | 3d800a577563efcdc3cd4519947f79141d645672 (patch) | |
tree | 6a8c8b31ef73a9e3a084041c7be7f756c801f2b0 /test | |
parent | 02891daa7a88bf963fab6511aa0e1270b850b0a9 (diff) | |
download | flac-3d800a577563efcdc3cd4519947f79141d645672.tar.gz |
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 <erikd@mega-nerd.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_compression.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_compression.sh b/test/test_compression.sh index 11bd6c38..504bf550 100755 --- a/test/test_compression.sh +++ b/test/test_compression.sh @@ -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 |