tests: attempt to fix memcached_dump() with data
[awesomized/libmemcached] / tests / libmemcached-1.0 / dump.cc
index 107828d407bc06532412e4f97c523885e81d2ca0..1e19c4a9f0ad411066d0e60833aaf2d6a5330ed4 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)
@@ -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;
 }