diff options
author | Brian Aker <brian@tangent.org> | 2011-07-06 11:15:01 -0700 |
---|---|---|
committer | Brian Aker <brian@tangent.org> | 2011-07-06 11:15:01 -0700 |
commit | 12a07e58df95bb8dbe167e4157b29c910177ade8 (patch) | |
tree | 5ef562d1f9e3289ab71b13d270cc3f749b25b649 /tests/libmemcached_world.h | |
parent | 06b419b10f9a86ebc584949162c7d81eab061e8a (diff) | |
download | libmemcached-12a07e58df95bb8dbe167e4157b29c910177ade8.tar.gz |
Merge in pid/ping status.
Diffstat (limited to 'tests/libmemcached_world.h')
-rw-r--r-- | tests/libmemcached_world.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/libmemcached_world.h b/tests/libmemcached_world.h index a6de23a0..dfdddbef 100644 --- a/tests/libmemcached_world.h +++ b/tests/libmemcached_world.h @@ -40,8 +40,6 @@ test_return_t world_post_run(libmemcached_test_container_st *); test_return_t world_on_error(test_return_t, libmemcached_test_container_st *); test_return_t world_destroy(libmemcached_test_container_st *); -static libmemcached_test_container_st global_container; - /** @note generic shutdown/startup for libmemcached tests. */ @@ -50,9 +48,8 @@ test_return_t world_container_shutdown(libmemcached_test_container_st *container libmemcached_test_container_st *world_create(test_return_t *error) { - global_container.construct.count= SERVERS_TO_CREATE; - global_container.construct.udp= 0; - if (not server_startup(&global_container.construct)) + libmemcached_test_container_st *global_container= new libmemcached_test_container_st(); + if (not server_startup(&global_container->construct)) { *error= TEST_FAILURE; return NULL; @@ -60,7 +57,7 @@ libmemcached_test_container_st *world_create(test_return_t *error) *error= TEST_SUCCESS; - return &global_container; + return global_container; } test_return_t world_container_startup(libmemcached_test_container_st *container) @@ -150,6 +147,8 @@ test_return_t world_destroy(libmemcached_test_container_st *container) sasl_done(); #endif + delete container; + return TEST_SUCCESS; } |