~brianaker/libmemcached/gear-clean

« back to all changes in this revision

Viewing changes to tests/libmemcached-1.0/plus.cpp

  • Committer: Brian Aker
  • Date: 2012-09-24 01:36:01 UTC
  • mto: This revision was merged to the branch mainline in revision 1072.
  • Revision ID: brian@tangent.org-20120924013601-4f0zeykol10ka6so
Updates from ddm4

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 *
36
36
 */
37
37
 
38
 
#include <mem_config.h>
 
38
#include <config.h>
39
39
 
40
40
/*
41
41
  C++ interface test
181
181
  vector<char> return_value;
182
182
 
183
183
  /* We need to empty the server before we continue the test */
184
 
  bool flush_res= memc.flush();
185
 
  if (flush_res == false)
186
 
  {
187
 
    std::string error_string;
188
 
    ASSERT_TRUE(memc.error(error_string));
189
 
    Error << error_string;
190
 
  }
191
184
  test_true(memc.flush());
192
185
 
193
186
  test_true(memc.mget(keys));
225
218
{
226
219
  // Check to see everything is setup internally even when a host is specified
227
220
  // on creation.
228
 
  const memcached_instance_st* instance= memcached_server_instance_by_position(original, 0);
 
221
  memcached_server_instance_st instance= memcached_server_instance_by_position(original, 0);
229
222
  Memcache memc(memcached_server_name(instance), memcached_server_port(instance));
230
223
 
231
224
  test_false(memc.increment(__func__, 0, NULL));