projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Merge in build lp
[awesomized/libmemcached]
/
tests
/
atomsmasher.cc
diff --git
a/tests/atomsmasher.cc
b/tests/atomsmasher.cc
index 3f4eb405ab288247a6e41553bdd7e54703fb447b..60f201ebdd6bc1e81343cabd1555e558a6c14a20 100644
(file)
--- a/
tests/atomsmasher.cc
+++ b/
tests/atomsmasher.cc
@@
-147,7
+147,7
@@
static test_return_t add_test(memcached_st *memc)
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
- test_true
(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED
);
+ test_true
_got(rc == MEMCACHED_SUCCESS or rc == MEMCACHED_BUFFERED, memcached_strerror(NULL, rc)
);
memcached_quit(memc);
rc= memcached_add(memc, key, strlen(key),
value, strlen(value),
memcached_quit(memc);
rc= memcached_add(memc, key, strlen(key),
value, strlen(value),
@@
-156,11
+156,11
@@
static test_return_t add_test(memcached_st *memc)
/* Too many broken OS'es have broken loopback in async, so we can't be sure of the result */
if (setting_value)
{
/* Too many broken OS'es have broken loopback in async, so we can't be sure of the result */
if (setting_value)
{
- test_true(rc == MEMCACHED_NOTSTORED
||
rc == MEMCACHED_STORED);
+ test_true(rc == MEMCACHED_NOTSTORED
or
rc == MEMCACHED_STORED);
}
else
{
}
else
{
- test_
true(rc == MEMCACHED_NOTSTORED
);
+ test_
compare_got(MEMCACHED_NOTSTORED, rc, memcached_strerror(NULL, rc)
);
}
return TEST_SUCCESS;
}
return TEST_SUCCESS;