summaryrefslogtreecommitdiff
path: root/t/flags.t
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2014-04-28 00:13:02 -0700
committerdormando <dormando@rydia.net>2016-06-23 21:35:38 -0700
commit181ef834151a37587faf2ee59079af1b8cf610af (patch)
treed98650b46db4f943198b7edb5a792d49833c03d8 /t/flags.t
parenta1d04fbafc575ed711b5b2a399bb76a3be4b52c0 (diff)
downloadmemcached-181ef834151a37587faf2ee59079af1b8cf610af.tar.gz
treat and print item flags as unsigned int
most of the code would parse and handle flags as unsigned int, but passed into alloc functions as a signed int... which would then continue to print it as unsigned up until a change made in 2007. Now treat it fully as unsigned and print as unsigned.
Diffstat (limited to 't/flags.t')
-rwxr-xr-xt/flags.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/flags.t b/t/flags.t
index e523196..c422085 100755
--- a/t/flags.t
+++ b/t/flags.t
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use strict;
-use Test::More tests => 6;
+use Test::More tests => 8;
use FindBin qw($Bin);
use lib "$Bin/lib";
use MemcachedTest;
@@ -10,7 +10,7 @@ my $server = new_memcached();
my $sock = $server->sock;
# set foo (and should get it)
-for my $flags (0, 123, 2**16-1) {
+for my $flags (0, 123, 2**16-1, 2**31) {
print $sock "set foo $flags 0 6\r\nfooval\r\n";
is(scalar <$sock>, "STORED\r\n", "stored foo");
mem_get_is({ sock => $sock,