From 339fccdc1ec98b2e7eaf7515b4f0086d1d56396d Mon Sep 17 00:00:00 2001 From: Brian Aker Date: Sun, 12 Feb 2012 02:35:10 -0800 Subject: [PATCH] Make the number of servers we test against more flexible. --- tests/libmemcached-1.0/all_tests.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/libmemcached-1.0/all_tests.cc b/tests/libmemcached-1.0/all_tests.cc index 5aa59f88..8561c959 100644 --- a/tests/libmemcached-1.0/all_tests.cc +++ b/tests/libmemcached-1.0/all_tests.cc @@ -72,6 +72,17 @@ void get_world(Framework *world) { + if (getenv("LIBMEMCACHED_SERVER_NUMBER")) + { + int set_count= atoi(getenv("LIBMEMCACHED_SERVER_NUMBER")); + assert(set_count >= 0); + world->servers().set_count(set_count); + } + else + { + world->servers().set_count(8); + } + world->collections= collection; world->_create= (test_callback_create_fn*)world_create; -- 2.30.2