projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Import/Merge of libtest latest.
[m6w6/libmemcached]
/
tests
/
libmemcached-1.0
/
pool.cc
diff --git
a/tests/libmemcached-1.0/pool.cc
b/tests/libmemcached-1.0/pool.cc
index ea6501e8c2cc54316e719fe798d79d10c6a513f9..9da4a0f953d235b736acdc026df232e5d0859eef 100644
(file)
--- a/
tests/libmemcached-1.0/pool.cc
+++ b/
tests/libmemcached-1.0/pool.cc
@@
-64,20
+64,19
@@
using namespace libtest;
test_return_t memcached_pool_test(memcached_st *)
{
test_return_t memcached_pool_test(memcached_st *)
{
- memcached_return_t rc;
const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com --POOL-MIN=10 --POOL-MAX=32";
char buffer[2048];
const char *config_string= "--SERVER=host10.example.com --SERVER=host11.example.com --SERVER=host10.example.com --POOL-MIN=10 --POOL-MAX=32";
char buffer[2048];
- rc= libmemcached_check_configuration(config_string, sizeof(config_string) -1, buffer, sizeof(buffer));
- test_
true_got(rc != MEMCACHED_SUCCESS, buffer
);
+ test_
compare(libmemcached_check_configuration(config_string, sizeof(config_string) -1, buffer, sizeof(buffer)), MEMCACHED_PARSE_ERROR
);
memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string));
memcached_pool_st* pool= memcached_pool(config_string, strlen(config_string));
- test_true
_got(pool, strerror(errno)
);
+ test_true
(pool
);
+ memcached_return_t rc;
memcached_st *memc= memcached_pool_pop(pool, false, &rc);
memcached_st *memc= memcached_pool_pop(pool, false, &rc);
- test_
true(rc ==
MEMCACHED_SUCCESS);
+ test_
compare(rc,
MEMCACHED_SUCCESS);
test_true(memc);
/*
test_true(memc);
/*
@@
-495,6
+494,8
@@
test_return_t regression_bug_962815(memcached_st *memc)
{
Error << "poll() failed with:" << strerror(errno);
}
{
Error << "poll() failed with:" << strerror(errno);
}
+ test_zero(active_fd);
+
set_running(false);
}
set_running(false);
}