+static void *world_create(server_startup_st& servers, test_return_t& error)
+{
+ in_port_t max_port;
+ for (uint32_t x= 0; x < SERVERS_TO_CREATE; x++)
+ {
+ in_port_t port;
+
+ char variable_buffer[1024];
+ snprintf(variable_buffer, sizeof(variable_buffer), "LIBMEMCACHED_PORT_%u", x);
+
+ char *var;
+ if ((var= getenv(variable_buffer)))
+ {
+ port= in_port_t(atoi(var));
+ }
+ else
+ {
+ port= in_port_t(TEST_PORT_BASE +x);
+ }
+
+ max_port= port;
+ const char *argv[1]= { "memcached" };
+ if (not server_startup(servers, "memcached", port, 1, argv))
+ {
+ error= TEST_FAILURE;
+ return NULL;
+ }
+ }