From: Mark Atwood Date: Mon, 24 Sep 2007 20:33:50 +0000 (-0700) Subject: add test for longer data, 8K X-Git-Tag: 0.2~7^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bdbc63ef7fefff9c5b7c9f6895bd1087e3c19622;p=m6w6%2Flibmemcached add test for longer data, 8K --- diff --git a/tests/test.c b/tests/test.c index 4cf41c63..93a90e31 100644 --- a/tests/test.c +++ b/tests/test.c @@ -168,6 +168,40 @@ void get_test2(void) memcached_deinit(memc); } +void get_test3(void) +{ + memcached_st *memc; + memcached_return rc; + char *key= "foo"; + char *value; + size_t value_length= 8191; + char *string; + size_t string_length; + uint16_t flags; + int i; + + value = (char*) malloc(value_length); + for (i=0; i