From: Perttu Ahola Date: Sun, 22 Jul 2012 17:27:55 +0000 (+0300) Subject: Test zlib wrapper's handling of large data X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=38bb6495821e6fd6da61ae742ff0f2e2d0499cc8;p=zefram%2Fminetest%2Fminetest_engine.git Test zlib wrapper's handling of large data --- diff --git a/src/test.cpp b/src/test.cpp index 6a0e991e..ee77d0dc 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"<