Home
last modified time | relevance | path

Searched refs:ok (Results 1 – 25 of 49) sorted by relevance

12

/memcached-1.6.32/t/
Dcas.t17 ok($sock != $sock2, "have two different connections open");
86 ok(scalar <$sock> =~ /VALUE foo1 0 1 (\d+)\r\n/, "gets foo1 regexp success");
93 ok(scalar <$sock> =~ /VALUE foo2 0 1 (\d+)\r\n/,"gets foo2 regexp success");
99 ok($foo1_cas != $foo2_cas,"foo1 != foo2 single-gets success");
112 ok($foo1_cas != $foo2_cas, "foo1 != foo2 multi-gets success");
118 ok($result[0] != "", "sock - gets foo1 is not empty");
122 ok($result2[0] != "","sock2 - gets foo1 is not empty");
130 ok( ( $res1 eq "STORED\r\n" && $res2 eq "EXISTS\r\n") ||
142 ok(scalar <$sock> =~ /VALUE bug15 0 1 (\d+)\r\n/, "gets bug15 regexp success");
153 ok(scalar <$sock> =~ /VALUE bug15 0 1 (\d+)\r\n/, "gets bug15 regexp success");
[all …]
Dmetaget.t338 ok(keys %$res, "not a miss");
345 ok(keys %$res, "not a miss");
351 ok(keys %$res, "not a miss");
502 ok(keys %$res, "not a miss");
534 ok(keys %$res, "not a miss");
554 ok(keys %$res, "not a miss");
567 ok(keys %$res, "not a miss");
571 ok(keys %$res, "not a miss");
581 ok(keys %$res, "not a miss");
585 ok(keys %$res, "not a miss");
[all …]
D00-startup.t11 ok($server, "started the server");
18 ok($@, "Died with illegal -l args");
43 ok($stats->{'binding_protocol'} =~ /$val/, "$val works");
76 ok($@, "Died with illegal -B arg.");
82 ok($@, "Died with invalid maximum connections 0.");
86 ok($@, "Died with invalid maximum connections -1.");
92 ok($@, "Died with illegal 0 thread count");
Ddaemonize.t17 ok(-e $tmpfn, "pid file exists");
18 ok(-s $tmpfn, "pid file has length");
25 ok(kill(0, $readpid), "process is still running");
30 ok($server->new_sock, "opened new socket");
31 ok(kill(9, $readpid), "sent KILL signal");
33 ok(! $server->new_sock, "failed to open new socket");
Dgetandtouch.t27 ok(scalar <$sock> =~ /VALUE foo1 0 7 (\d+)\r\n/, "get and touch foo1 with cas regexp success");
29 ok(scalar <$sock> =~ /VALUE foo2 0 7 (\d+)\r\n/, "get and touch foo2 with cas regexp success");
35 ok(scalar <$sock> =~ /VALUE foo1 0 7\r\n/, "get and touch foo1 without cas regexp success");
37 ok(scalar <$sock> =~ /VALUE foo2 0 7\r\n/, "get and touch foo2 without cas regexp success");
Dbinary-sasl.t139 ok($server, "started the server");
151 ok($status, "this fails to authenticate");
158 ok($status, "this fails to authenticate");
165 ok($status, "this fails to authenticate");
172 ok($status, "this fails to authenticate");
213 ok(! $status);
219 ok(! $status);
225 ok(! $status);
231 ok(! $status);
243 ok($status, "this fails to authenticate");
[all …]
Dissue_260.t25 ok(length($big) > 512 * 1024);
26 ok(length($big) < 1024 * 1024);
47 ok($evictions == 37, "some evictions happened");
70 ok($evictions == 38, "one more eviction happened: $evictions");
Dlru.t17 ok(length($big) > 512 * 1024);
18 ok(length($big) < 1024 * 1024);
45 ok($evictions == 37, "some evictions happened");
Dbinary.t11 ok($server, "started the server");
92 ok(defined $v && length($v), "Proper version: $v");
126 ok($s2, "started the server");
136 ok($gval eq $val, $gval . " = " . $val);
153 ok($@->exists, "Expected exists error received");
165 ok($@->too_big, "Was too big");
175 ok($@->not_found, "Expected not_found error received");
236 ok($icas != $cas);
242 ok($icas != $cas);
263 ok($@->not_found, "Error was 'not found' as expected");
[all …]
Dissue_192.t12 ok($server->new_sock, "opened new socket");
17 ok($server->new_sock, "failed to open new socket");
Dunixsocket.t17 ok(-S $filename, "creating unix domain socket $filename");
34 ok($@, "Died connecting to unsupported unix socket.");
Dshutdown.t53 ok(!$server->is_running, "server stopped");
58 ok(0, "server failed to stop");
Dconn-limits.t42 ok(!defined <$s>, 'sock disconnected after overflow');
58 ok(defined($s), 'new conn made');
Dproxyfuncgen.t272 ok(!$t->wait_c(0.2), 'client doesnt become readable');
343 ok(!$t->wait_c(0.2), 'client doesnt become readable');
354 ok(!$t->wait_c(0.2), 'client doesnt become readable');
365 ok(!$t->wait_c(0.2), 'client doesnt become readable');
378 ok(!$t->wait_c(0.2), 'client doesnt become readable');
388 ok(!$t->wait_c(0.2), 'client doesnt become readable');
Dslabs_reassign.t55 ok($slabs_before->{"31:total_pages"} != $slabs_after->{"31:total_pages"},
57 ok($slabs_before->{"25:total_pages"} != $slabs_after->{"25:total_pages"},
Ditem_size_max.t22 ok($@ && $@ =~ m/^Failed/, "Shouldn't start with < 1k item max");
27 ok($@ && $@ =~ m/^Failed/, "Shouldn't start with > 128m item max");
Drefhang.t55 ok($stats->{"items:31:outofmemory"} > 0, "some ooms happened");
56 ok($stats->{"items:31:outofmemory"} < 20, "fewer than 20 ooms");
Dextstore.t23 ok($@, "failed to start server with zero pages assigned");
28 ok($@, "failed to start server with invalid path size");
36 ok($@, "failed to start a second server with the same file path");
Dproxyunits.lua63 if res:ok() then
237 local ok = res:ok()
238 if ok then
243 local ok = res:ok()
244 if not ok then
Dissue_67.t31 ok(!defined($got), "$name expected no port, got $got");
33 ok(defined($got) && $got != 11211, "$name expected random port (got $got)");
Dproxyconfig.t45 ok(defined $be, "mock backend created");
88 ok(defined $srv, "mock server created");
97 ok($@ && $@ =~ m/Failed to connect/, "server successfully not started");
212 ok(defined $be, "mock backend created");
337 ok(defined $srv, "mock server created");
Dissue_50.t16 ok(1, "Either the above worked and quit, or hung forever.");
Dline-lengths.t24 ok(@long_lines == 0, "$f has a long lines: @long_lines");
Dmisbehave.t27 ok($ret == 0, "did not allow misbehaving");
/memcached-1.6.32/
Dsasl_defs.c72 bool ok = false; in sasl_server_userdb_checkpass() local
83 ok = true; in sasl_server_userdb_checkpass()
90 if (ok) { in sasl_server_userdb_checkpass()

12