~yolanda.robla/ubuntu/trusty/memcached/add_distribution

« back to all changes in this revision

Viewing changes to t/lru.t

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2010-05-12 11:41:22 UTC
  • mto: (3.3.3 squeeze) (1.1.7 upstream)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: james.westby@ubuntu.com-20100512114122-wpynzm9kb1irw1um
Import upstream version 1.4.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 
13
13
# create a big value for the largest slab
14
14
my $max = 1024 * 1024;
15
 
my $big = "a big value that's > .5M and < 1M. ";
16
 
while (length($big) * 2 < $max) {
17
 
    $big = $big . $big;
18
 
}
 
15
my $big = 'x' x (1024 * 1024 - 250);
19
16
 
20
17
ok(length($big) > 512 * 1024);
21
18
ok(length($big) < 1024 * 1024);