#include <stdio.h>
#include <stdlib.h>
+#include <stdint.h>
#include <string.h>
#include "generator.h"
size_t value_length;
};
-pairs_st *pairs_generate(uint32_t number_of, size_t length);
+pairs_st *pairs_generate(uint64_t number_of, size_t value_length);
void pairs_free(pairs_st *pairs);
#endif
/* We don't test the behavior itself, we test the switches */
test_return behavior_test(memcached_st *memc)
{
- unsigned long long value;
- unsigned int set= 1;
+ uint64_t value;
+ uint32_t set= 1;
memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NO_BLOCK, set);
value= memcached_behavior_get(memc, MEMCACHED_BEHAVIOR_NO_BLOCK);
#include "test.h"
#include "server.h"
-uint8_t set_test(memcached_st *memc)
+/* Prototypes */
+test_return set_test(memcached_st *memc);
+void *world_create(void);
+void world_destroy(void *p);
+
+test_return set_test(memcached_st *memc)
{
memcached_return rc;
char *key= "foo";
(time_t)0, (uint32_t)0);
assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
- return 0;
+ return TEST_SUCCESS;
}
test_st tests[] ={