{ \
if ((A) != (B)) \
{ \
- fprintf(stderr, "\n%s:%d: Expected %lu == %lu\n", __FILE__, __LINE__, (unsigned long)(A), (unsigned long)(B)); \
+ fprintf(stderr, "\n%s:%d: Expected %s, got %lu\n", __FILE__, __LINE__, #A, (unsigned long)(B)); \
create_core(); \
return TEST_FAILURE; \
} \
for (unsigned int x= 0; x < 3; x++)
{
- memcached_return_t rc;
- rc= memcached_set(memc, keys[x], key_length[x],
- keys[x], key_length[x],
- (time_t)50, (uint32_t)9);
+ memcached_return_t rc= memcached_set(memc, keys[x], key_length[x],
+ keys[x], key_length[x],
+ (time_t)50, (uint32_t)9);
test_true(rc == MEMCACHED_SUCCESS);
}
/* We need to empty the server before continueing test */
while ((return_value= memcached_fetch(memc, return_key, &return_key_length,
- &return_value_length, &flags, &rc)) != NULL)
+ &return_value_length, &flags, &rc)) != NULL)
{
test_true(return_value);
free(return_value);
count++;
}
- test_true(count == 3);
+ test_compare(3, count);
return TEST_SUCCESS;
}