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

« back to all changes in this revision

Viewing changes to t/lib/MemcachedTest.pm

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2010-05-12 11:41:22 UTC
  • mfrom: (1.1.7 upstream) (3.3.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100512114122-e2dphwiezevuny1t
Tags: 1.4.5-1
* New upstream release.  Main changes since 1.4.2 are:
  New features:
  - Support for SASL authentication.
  - New script damemtop - a memcached top.
  - Slab optimizations.
  - New stats, for reclaimed memory and SASL events.
  Bugs fixed:
  - Malicious input can crash server (CVE-2010-1152).  Closes: #579913.
  - Fixed several problems with slab handling and growth.
  - Provide better error reporting.
  - Fix get stats accounting.
  - Fixed backwards compatibility with delete 0.
  - Documentation fixes.
  - Various build fixes, among others, fixed FTBFS with gcc-4.5 (closes:
    #565033).
* Refreshed and renamed 01_init_script_compliant_with_LSB.patch.
* Fixed lintian warnings by adding $remote_fs to init.d script.
* Removed non-existent document (doc/memory_management.txt).
* debian/control: Bumped Standards-Version to 3.8.4 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
my $builddir = getcwd;
13
13
 
14
14
 
15
 
@EXPORT = qw(new_memcached sleep mem_get_is mem_gets mem_gets_is mem_stats free_port);
 
15
@EXPORT = qw(new_memcached sleep mem_get_is mem_gets mem_gets_is mem_stats
 
16
             supports_sasl free_port);
16
17
 
17
18
sub sleep {
18
19
    my $n = shift;
141
142
    return 1;
142
143
}
143
144
 
 
145
sub supports_sasl {
 
146
    my $output = `$builddir/memcached-debug -h`;
 
147
    return 1 if $output =~ /sasl/i;
 
148
    return 0;
 
149
}
 
150
 
144
151
sub new_memcached {
145
152
    my ($args, $passed_port) = @_;
146
153
    my $port = $passed_port || free_port();
165
172
    if ($< == 0) {
166
173
        $args .= " -u root";
167
174
    }
 
175
 
168
176
    my $childpid = fork();
169
177
 
170
178
    my $exe = "$builddir/memcached-debug";