X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Ffunction.c;h=f06c278606f88e84bacdc8938189852c24b2293f;hb=a4edd02b7b976d5f5e011e9720ecf95352f3ca8a;hp=3ef5151ff6be76168d34e3a184e1c7361ea2abaa;hpb=1d57c8e96aae2ce17306f36141e68b506ef01799;p=m6w6%2Flibmemcached diff --git a/tests/function.c b/tests/function.c index 3ef5151f..f06c2786 100644 --- a/tests/function.c +++ b/tests/function.c @@ -1397,10 +1397,13 @@ static test_return user_supplied_bug1(memcached_st *memc) sprintf(key, "%d", x); rc = memcached_set(memc, key, strlen(key), randomstuff, strlen(randomstuff), 10, 0); + WATCHPOINT_ERROR(rc); + assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED); /* If we fail, lets try again */ if (rc != MEMCACHED_SUCCESS && rc != MEMCACHED_BUFFERED) rc = memcached_set(memc, key, strlen(key), randomstuff, strlen(randomstuff), 10, 0); + WATCHPOINT_ERROR(rc); assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED); }