diff options
author | dormando <dormando@rydia.net> | 2009-10-29 18:39:06 -0700 |
---|---|---|
committer | Dustin Sallings <dustin@spy.net> | 2009-10-30 16:18:53 -0700 |
commit | 95c8220d6900d95a84ee4033ac4ff75265fe7979 (patch) | |
tree | db39a9e8b654121540b9d0ed647e95ad331227db /t/lru.t | |
parent | 6dc28e905d7b9f7809f6e8c0e372588740c28e47 (diff) | |
download | memcached-95c8220d6900d95a84ee4033ac4ff75265fe7979.tar.gz |
Ensure LRU tests use largest slab.
Diffstat (limited to 't/lru.t')
-rwxr-xr-x | t/lru.t | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -12,10 +12,7 @@ my $sock = $server->sock; # create a big value for the largest slab my $max = 1024 * 1024; -my $big = "a big value that's > .5M and < 1M. "; -while (length($big) * 2 < $max) { - $big = $big . $big; -} +my $big = 'x' x (1024 * 1024 - 250); ok(length($big) > 512 * 1024); ok(length($big) < 1024 * 1024); |