[memcached] bradfitz, r392: update test so it still works,
but can a...
commits at code.sixapart.com
commits at code.sixapart.com
Sat Sep 9 21:36:49 UTC 2006
update test so it still works, but can also work with the 1.1.x branch
U trunk/server/t/64bit.t
Modified: trunk/server/t/64bit.t
===================================================================
--- trunk/server/t/64bit.t 2006-09-09 20:36:57 UTC (rev 391)
+++ trunk/server/t/64bit.t 2006-09-09 21:36:48 UTC (rev 392)
@@ -6,10 +6,10 @@
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 @@
}
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";
More information about the memcached-commits
mailing list