-/*
- Look for zero length value problems
-*/
-test_return_t user_supplied_bug15(memcached_st *memc)
-{
- for (uint32_t x= 0; x < 2; x++)
- {
- memcached_return_t rc= memcached_set(memc, test_literal_param("mykey"),
- NULL, 0,
- (time_t)0, (uint32_t)0);
-
- test_compare(MEMCACHED_SUCCESS, rc);
-
- size_t length;
- uint32_t flags;
- char *value= memcached_get(memc, test_literal_param("mykey"),
- &length, &flags, &rc);
-
- test_compare(MEMCACHED_SUCCESS, rc);
- test_false(value);
- test_zero(length);
- test_zero(flags);
-
- value= memcached_get(memc, test_literal_param("mykey"),
- &length, &flags, &rc);
-
- test_compare(MEMCACHED_SUCCESS, rc);
- test_null(value);
- test_zero(length);
- test_zero(flags);
- }
-
- return TEST_SUCCESS;
-}
-
-/* Check the return sizes on FLAGS to make sure it stores 32bit unsigned values correctly */
-test_return_t user_supplied_bug16(memcached_st *memc)
-{
- test_compare(MEMCACHED_SUCCESS, memcached_set(memc, test_literal_param("mykey"),
- NULL, 0,
- (time_t)0, UINT32_MAX));
-
-
- size_t length;
- uint32_t flags;
- memcached_return_t rc;
- char *value= memcached_get(memc, test_literal_param("mykey"),
- &length, &flags, &rc);
-
- test_compare(MEMCACHED_SUCCESS, rc);
- test_null(value);
- test_zero(length);
- test_compare(flags, UINT32_MAX);
-
- return TEST_SUCCESS;
-}
-
-#if !defined(__sun) && !defined(__OpenBSD__)
-/* Check the validity of chinese key*/
-test_return_t user_supplied_bug17(memcached_st *memc)
-{
- const char *key= "豆瓣";
- const char *value="我们在炎热抑郁的夏天无法停止豆瓣";
- memcached_return_t rc= memcached_set(memc, key, strlen(key),
- value, strlen(value),
- (time_t)0, 0);
-
- test_compare(MEMCACHED_SUCCESS, rc);
-
- size_t length;
- uint32_t flags;
- char *value2= memcached_get(memc, key, strlen(key),
- &length, &flags, &rc);
-
- test_compare(length, strlen(value));
- test_compare(MEMCACHED_SUCCESS, rc);
- test_memcmp(value, value2, length);
- free(value2);
-
- return TEST_SUCCESS;
-}
-#endif
-