From: Brian Aker Date: Sun, 27 Nov 2011 23:03:03 +0000 (-0800) Subject: Rely on the jenkins test. X-Git-Tag: 1.0.3~4^2~3^2~3 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=0918f45e3391b92f96e8c24d5def1863ceb937e2;p=awesomized%2Flibmemcached Rely on the jenkins test. --- diff --git a/tests/mem_functions.cc b/tests/mem_functions.cc index 321b5fc0..ce352609 100644 --- a/tests/mem_functions.cc +++ b/tests/mem_functions.cc @@ -941,8 +941,11 @@ static test_return_t bad_key_test(memcached_st *memc) memcached_callback_set(memc_clone, MEMCACHED_CALLBACK_NAMESPACE, NULL)); std::vector longkey; - longkey.reserve(MEMCACHED_MAX_KEY); - longkey.insert(longkey.end(), MEMCACHED_MAX_KEY, 'a'); + { + std::vector::iterator it= longkey.begin(); + longkey.insert(it, MEMCACHED_MAX_KEY, 'a'); + } + test_compare(longkey.size(), size_t(MEMCACHED_MAX_KEY)); { size_t string_length; @@ -3463,7 +3466,7 @@ static test_return_t pre_jenkins(memcached_st *memc) { memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_HASH, (uint64_t)MEMCACHED_HASH_JENKINS); - return TEST_SUCCESS; + return TEST_SKIPPED; }