~john-koepi/ubuntu/trusty/memcached/default

« back to all changes in this revision

Viewing changes to t/issue_152.t

  • Committer: Bazaar Package Importer
  • Author(s): Scott Kitterman
  • Date: 2011-10-05 13:27:39 UTC
  • mfrom: (1.1.8 upstream) (3.3.4 sid)
  • Revision ID: james.westby@ubuntu.com-20111005132739-ntsnlj16fcze221i
Tags: 1.4.7-0.1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Run as 'memcache' user instead of nobody (LP #599461)
  - Depend on adduser for preinst/postrm
  - Create user in postinst

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/perl
 
2
 
 
3
use strict;
 
4
use Test::More tests => 2;
 
5
use FindBin qw($Bin);
 
6
use lib "$Bin/lib";
 
7
use MemcachedTest;
 
8
 
 
9
my $server = new_memcached();
 
10
my $sock = $server->sock;
 
11
my $key = "a"x251;
 
12
 
 
13
print $sock "set a 1 0 1\r\na\r\n";
 
14
is (scalar <$sock>, "STORED\r\n", "Stored key");
 
15
 
 
16
print $sock "get a $key\r\n";
 
17
is (scalar <$sock>, "CLIENT_ERROR bad command line format\r\n", "illegal key");