projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Modified test to allow it to run on slow machines (aka it ran too long)
[m6w6/libmemcached]
/
lib
/
memcached_connect.c
diff --git
a/lib/memcached_connect.c
b/lib/memcached_connect.c
index abf15676bf6d23a58cad66db5f433db1e0fcc9db..8ffaaef9fb91057e5c3f6ee1c8aba8c9368ccbdc 100644
(file)
--- a/
lib/memcached_connect.c
+++ b/
lib/memcached_connect.c
@@
-14,7
+14,7
@@
memcached_return memcached_real_connect(memcached_st *ptr, unsigned int server_k
if (ptr->hosts[server_key].fd == -1)
{
/* Old connection junk still is in the structure */
if (ptr->hosts[server_key].fd == -1)
{
/* Old connection junk still is in the structure */
-
assert
(ptr->hosts[server_key].stack_responses == 0);
+
WATCHPOINT_ASSERT
(ptr->hosts[server_key].stack_responses == 0);
if ((h= gethostbyname(ptr->hosts[server_key].hostname)) == NULL)
{
if ((h= gethostbyname(ptr->hosts[server_key].hostname)) == NULL)
{
@@
-86,7
+86,7
@@
test_connect:
}
ptr->connected++;
}
}
ptr->connected++;
}
-
assert
(ptr->hosts[server_key].stack_responses == 0);
+
WATCHPOINT_ASSERT
(ptr->hosts[server_key].stack_responses == 0);
}
return MEMCACHED_SUCCESS;
}
return MEMCACHED_SUCCESS;