From bdbc63ef7fefff9c5b7c9f6895bd1087e3c19622 Mon Sep 17 00:00:00 2001 From: Mark Atwood Date: Mon, 24 Sep 2007 13:33:50 -0700 Subject: [PATCH] add test for longer data, 8K --- tests/test.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) 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