tests: attempt to fix dump thest
[awesomized/libmemcached] / tests / libmemcached-1.0 / dump.cc
index 107828d407bc06532412e4f97c523885e81d2ca0..a265434cd997aef8966ec77ea5370dd888cd6cdc 100644 (file)
@@ -65,7 +65,7 @@ static memcached_return_t callback_dump_counter(const memcached_st *,
   return MEMCACHED_SUCCESS;
 }
 
-static memcached_return_t item_counter(memcached_server_instance_st ,
+static memcached_return_t item_counter(const memcached_instance_st * ,
                                        const char *key, size_t key_length,
                                        const char *value, size_t, // value_length,
                                        void *context)
@@ -124,7 +124,7 @@ test_return_t memcached_dump_TEST2(memcached_st *memc)
                                NULL, 0, // Zero length values
                                time_t(0), uint32_t(0)));
   }
-  memcached_quit(memc);
+  //memcached_quit(memc);
 
   uint64_t counter= 0;
   test_compare(MEMCACHED_SUCCESS,
@@ -138,7 +138,7 @@ test_return_t memcached_dump_TEST2(memcached_st *memc)
   test_compare(MEMCACHED_SUCCESS,
                memcached_dump(memc, callbacks, &count, 1));
 
-  test_true(count);
+  test_true(count > 0);
 
   return TEST_SUCCESS;
 }