summaryrefslogtreecommitdiff
path: root/t/64bit.t
diff options
context:
space:
mode:
authorBrad Fitzpatrick <brad@danga.com>2006-09-09 21:36:48 +0000
committerBrad Fitzpatrick <brad@danga.com>2006-09-09 21:36:48 +0000
commitcc672e4fad012e75496bbb376acc0e03ac57558f (patch)
tree091a9d1a91eef78a03ea146367320fc84e61e55d /t/64bit.t
parentd42217a24bce2000ee2df3615cc8b780460ee67c (diff)
downloadmemcached-cc672e4fad012e75496bbb376acc0e03ac57558f.tar.gz
update test so it still works, but can also work with the 1.1.x branch
git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@392 b0b603af-a30f-0410-a34e-baf09ae79d0b
Diffstat (limited to 't/64bit.t')
-rwxr-xr-xt/64bit.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/64bit.t b/t/64bit.t
index 181bcd6..425ff8a 100755
--- a/t/64bit.t
+++ b/t/64bit.t
@@ -6,10 +6,10 @@ use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
-$ENV{T_MEMD_INITIAL_MALLOC} = "4294967328"; # 2**32 + 32 :)
+$ENV{T_MEMD_INITIAL_MALLOC} = "4294967328"; # 2**32 + 32 , just over 4GB
$ENV{T_MEMD_SLABS_ALLOC} = 0; # don't preallocate slabs
-my $server = new_memcached("-m 4097 -M");
+my $server = new_memcached("-m 4098 -M");
my $sock = $server->sock;
my ($stats, $slabs) = @_;
@@ -24,14 +24,14 @@ if ($stats->{'pointer_size'} eq "32") {
}
is($stats->{'pointer_size'}, 64, "is 64 bit");
-is($stats->{'limit_maxbytes'}, "4296015872", "max bytes is 4097 MB");
+is($stats->{'limit_maxbytes'}, "4297064448", "max bytes is 4098 MB");
$slabs = mem_stats($sock, 'slabs');
is($slabs->{'total_malloced'}, "4294967328", "expected (faked) value of total_malloced");
is($slabs->{'active_slabs'}, 0, "no active slabs");
my $hit_limit = 0;
-for (1..3) {
+for (1..5) {
my $size = 400 * 1024;
my $data = "a" x $size;
print $sock "set big$_ 0 0 $size\r\n$data\r\n";