X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ftest.c;h=16afb65e5905acfc1d73c1948451b34a74fb20c0;hb=c11af7ccccd3260444da4f575022de655d2ffc26;hp=755455f618941261c3542a17736b58ce1b0d7197;hpb=9e9572af3e9be02dd3de5c71bf1665217a770e1b;p=m6w6%2Flibmemcached diff --git a/tests/test.c b/tests/test.c index 755455f6..16afb65e 100644 --- a/tests/test.c +++ b/tests/test.c @@ -7,6 +7,7 @@ #include #include #include +#include long int timedif(struct timeval a, struct timeval b) { @@ -220,8 +221,6 @@ void get_test3(memcached_st *memc) string= memcached_get(memc, key, strlen(key), &string_length, &flags, &rc); - WATCHPOINT_ERRNO(memc->my_errno); - WATCHPOINT_ERROR(rc); assert(rc == MEMCACHED_SUCCESS); assert(string); assert(string_length == value_length); @@ -498,6 +497,12 @@ void behavior_test(memcached_st *memc) memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_MD5_HASHING, &set); value= memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_MD5_HASHING); assert(value == 0); + + value= memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_SOCKET_SEND_SIZE); + assert(value > 0); + + value= memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_SOCKET_RECV_SIZE); + assert(value > 0); } /* Test case provided by Cal Haldenbrand */