memcached_quit(memc);
memc->number_of_hosts= 0;
- run_distribution(memc);
+ memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_DISTRIBUTION, memc->distribution);
- assert(memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_USE_UDP, 1) == MEMCACHED_SUCCESS);
- assert(memc->flags & MEM_USE_UDP);
- assert(memc->flags & MEM_NOREPLY);;
+ test_truth(memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_USE_UDP, 1) == MEMCACHED_SUCCESS);
+ test_truth(memc->flags & MEM_USE_UDP);
+ test_truth(memc->flags & MEM_NOREPLY);;
- assert(memc->number_of_hosts == 0);
+ test_truth(memc->number_of_hosts == 0);
memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_USE_UDP,0);
- assert(!(memc->flags & MEM_USE_UDP));
+ test_truth(!(memc->flags & MEM_USE_UDP));
memcached_behavior_set(memc, MEMCACHED_BEHAVIOR_NOREPLY,0);
- assert(!(memc->flags & MEM_NOREPLY));
+ test_truth(!(memc->flags & MEM_NOREPLY));
return TEST_SUCCESS;
}