static test_return_t pre_touch(memcached_st *memc)
{
test_compare(MEMCACHED_SUCCESS, memcached_version(memc));
- test_skip(true, libmemcached_util_version_check(memc, 1, 4, 8));
+ test_skip(true, libmemcached_util_version_check(memc, 1, 4, 15));
return TEST_SUCCESS;
}
test_return_t test_memcached_touch(memcached_st *memc)
{
-
test_skip(TEST_SUCCESS, pre_touch(memc));
size_t len;
rc= memcached_touch(memc, test_literal_param(__func__), 60 *60);
ASSERT_EQ_(MEMCACHED_SUCCESS, rc, "%s", memcached_last_error_message(memc));
- if (libmemcached_util_version_check(memc, 1, 2, 15))
- {
- rc= memcached_touch(memc, test_literal_param(__func__), 60 *60 *24 *60);
- ASSERT_EQ_(MEMCACHED_SUCCESS, rc, "%s", memcached_last_error_message(memc));
+ rc= memcached_touch(memc, test_literal_param(__func__), 60 *60 *24 *60);
+ ASSERT_EQ_(MEMCACHED_SUCCESS, rc, "%s", memcached_last_error_message(memc));
- rc= memcached_exist(memc, test_literal_param(__func__));
- ASSERT_EQ_(MEMCACHED_NOTFOUND, rc, "%s", memcached_last_error_message(memc));
- }
+ rc= memcached_exist(memc, test_literal_param(__func__));
+ ASSERT_EQ_(MEMCACHED_NOTFOUND, rc, "%s", memcached_last_error_message(memc));
return TEST_SUCCESS;
}
test_return_t test_memcached_touch_by_key(memcached_st *memc)
{
-
test_skip(TEST_SUCCESS, pre_touch(memc));
size_t len;
60 *60);
ASSERT_EQ_(MEMCACHED_SUCCESS, rc, "%s", memcached_last_error_message(memc));
- if (libmemcached_util_version_check(memc, 1, 2, 15))
- {
- rc= memcached_touch_by_key(memc,
- test_literal_param("grouping_key"),
- test_literal_param(__func__),
- 60 *60 *24 *60);
- ASSERT_EQ_(MEMCACHED_SUCCESS, rc, "%s", memcached_last_error_message(memc));
+ rc= memcached_touch_by_key(memc,
+ test_literal_param("grouping_key"),
+ test_literal_param(__func__),
+ 60 *60 *24 *60);
+ ASSERT_EQ_(MEMCACHED_SUCCESS, rc, "%s", memcached_last_error_message(memc));
- rc= memcached_exist_by_key(memc, test_literal_param("grouping_key"),test_literal_param(__func__));
- ASSERT_EQ_(MEMCACHED_NOTFOUND, rc, "%s", memcached_last_error_message(memc));
- }
+ rc= memcached_exist_by_key(memc, test_literal_param("grouping_key"),test_literal_param(__func__));
+ ASSERT_EQ_(MEMCACHED_NOTFOUND, rc, "%s", memcached_last_error_message(memc));
return TEST_SUCCESS;
}