diff options
author | Josh MacDonald <josh.macdonald@gmail.com> | 2015-11-18 20:23:26 -0800 |
---|---|---|
committer | Josh MacDonald <josh.macdonald@gmail.com> | 2015-11-18 20:23:26 -0800 |
commit | 996e84025161cd1ba8edcde70034396b55708b06 (patch) | |
tree | 273e2018875388bcf8c257d8caba7f46e14886e1 | |
parent | fcf3b2ee0a00e2881f6a6b47ab84372affea9cbf (diff) |
Revise threshold in SmallStride test
-rw-r--r-- | xdelta3/testing/regtest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xdelta3/testing/regtest.cc b/xdelta3/testing/regtest.cc index 0c21b2d..b2cdaa5 100644 --- a/xdelta3/testing/regtest.cc +++ b/xdelta3/testing/regtest.cc | |||
@@ -815,7 +815,7 @@ void TestSmallStride() { | |||
815 | 815 | ||
816 | IF_DEBUG1(DP(RINT "[stride=%d] changes=%u adds=%"Q"u\n", | 816 | IF_DEBUG1(DP(RINT "[stride=%d] changes=%u adds=%"Q"u\n", |
817 | s, changes, delta.AddedBytes())); | 817 | s, changes, delta.AddedBytes())); |
818 | double allowance = Constants::BLOCK_SIZE < 8192 ? 3.0 : 1.1; | 818 | double allowance = Constants::BLOCK_SIZE < 8192 || s < 30 ? 3.0 : 1.1; |
819 | CHECK_GE(allowance * changes, (double)delta.AddedBytes()); | 819 | CHECK_GE(allowance * changes, (double)delta.AddedBytes()); |
820 | } | 820 | } |
821 | } | 821 | } |