~brianaker/libmemcached/1164440

« back to all changes in this revision

Viewing changes to tests/libmemcached-1.0/all_tests.cc

  • Committer: Continuous Integration
  • Date: 2012-04-03 15:33:28 UTC
  • mfrom: (991.4.1 workspace)
  • mto: This revision was merged to the branch mainline in revision 992.
  • Revision ID: ci@tangent.org-20120403153328-c3hchrmd2bvfxayb
Merge working tree with build tree.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
{
73
73
  if (getenv("LIBMEMCACHED_SERVER_NUMBER"))
74
74
  {
75
 
    int set_count= atoi(getenv("LIBMEMCACHED_SERVER_NUMBER"));
76
 
    fatal_assert(set_count >= 0);
77
 
    world->servers().set_count(set_count);
 
75
    unsigned long int set_count= strtoul(getenv("LIBMEMCACHED_SERVER_NUMBER"), (char **) NULL, 10);
 
76
    fatal_assert(set_count >= 1);
 
77
    world->servers().set_servers_to_run(set_count);
78
78
  }
79
79
  else
80
80
  {
81
 
    world->servers().set_count(8);
 
81
    world->servers().set_servers_to_run(8);
82
82
  }
83
83
 
84
84
  world->collections= collection;