Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit cc672e4fad012e75496bbb376acc0e03ac57558f 1 parent d42217a
Brad Fitzpatrick bradfitz authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 t/64bit.t
8 t/64bit.t
@@ -6,10 +6,10 @@ use FindBin qw($Bin);
6 6 use lib "$Bin/lib";
7 7 use MemcachedTest;
8 8
9   -$ENV{T_MEMD_INITIAL_MALLOC} = "4294967328"; # 2**32 + 32 :)
  9 +$ENV{T_MEMD_INITIAL_MALLOC} = "4294967328"; # 2**32 + 32 , just over 4GB
10 10 $ENV{T_MEMD_SLABS_ALLOC} = 0; # don't preallocate slabs
11 11
12   -my $server = new_memcached("-m 4097 -M");
  12 +my $server = new_memcached("-m 4098 -M");
13 13 my $sock = $server->sock;
14 14
15 15 my ($stats, $slabs) = @_;
@@ -24,14 +24,14 @@ if ($stats->{'pointer_size'} eq "32") {
24 24 }
25 25
26 26 is($stats->{'pointer_size'}, 64, "is 64 bit");
27   -is($stats->{'limit_maxbytes'}, "4296015872", "max bytes is 4097 MB");
  27 +is($stats->{'limit_maxbytes'}, "4297064448", "max bytes is 4098 MB");
28 28
29 29 $slabs = mem_stats($sock, 'slabs');
30 30 is($slabs->{'total_malloced'}, "4294967328", "expected (faked) value of total_malloced");
31 31 is($slabs->{'active_slabs'}, 0, "no active slabs");
32 32
33 33 my $hit_limit = 0;
34   -for (1..3) {
  34 +for (1..5) {
35 35 my $size = 400 * 1024;
36 36 my $data = "a" x $size;
37 37 print $sock "set big$_ 0 0 $size\r\n$data\r\n";

0 comments on commit cc672e4

Please sign in to comment.
Something went wrong with that request. Please try again.