From 38bb6495821e6fd6da61ae742ff0f2e2d0499cc8 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 22 Jul 2012 20:27:55 +0300 Subject: [PATCH] Test zlib wrapper's handling of large data --- src/test.cpp | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/src/test.cpp b/src/test.cpp index 6a0e991e2..ee77d0dc8 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -40,6 +40,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "inventory.h" #include "util/numeric.h" #include "util/serialize.h" +#include "noise.h" // PseudoRandom used for random data for compression /* Asserts that the exception occurs @@ -415,6 +416,39 @@ struct TestCompress: public TestBase } } + + // Test zlib wrapper with large amounts of data (larger than it's + // internal buffers) + { + infostream<<"Test: Testing zlib wrappers with a large amount " + <<"of pseudorandom data"<