projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Update libtest/fedora/lion fixes
[awesomized/libmemcached]
/
tests
/
namespace.cc
diff --git
a/tests/namespace.cc
b/tests/namespace.cc
index 54cc1301e830e0c7affeabf075d1af8158734d27..57ecc60667d0f3e2273cad75b1f648184c7eddf2 100644
(file)
--- a/
tests/namespace.cc
+++ b/
tests/namespace.cc
@@
-35,8
+35,13
@@
*
*/
*
*/
-#include <libtest/common.h>
+#include <config.h>
+#include <libtest/test.hpp>
+
+using namespace libtest;
+
#include <libmemcached/memcached.h>
#include <libmemcached/memcached.h>
+
#include <tests/namespace.h>
test_return_t memcached_increment_namespace(memcached_st *memc)
#include <tests/namespace.h>
test_return_t memcached_increment_namespace(memcached_st *memc)
@@
-53,13
+58,13
@@
test_return_t memcached_increment_namespace(memcached_st *memc)
memcached_increment(memc,
test_literal_param("number"),
1, &new_number));
memcached_increment(memc,
test_literal_param("number"),
1, &new_number));
- test_compare(
1
, new_number);
+ test_compare(
uint64_t(1)
, new_number);
test_compare(MEMCACHED_SUCCESS,
memcached_increment(memc,
test_literal_param("number"),
1, &new_number));
test_compare(MEMCACHED_SUCCESS,
memcached_increment(memc,
test_literal_param("number"),
1, &new_number));
- test_compare(
2
, new_number);
+ test_compare(
uint64_t(2)
, new_number);
memcached_st *clone= memcached_clone(NULL, memc);
memcached_st *clone= memcached_clone(NULL, memc);
@@
-81,7
+86,7
@@
test_return_t memcached_increment_namespace(memcached_st *memc)
test_literal_param("number"),
0, 0, 0);
test_true(value);
test_literal_param("number"),
0, 0, 0);
test_true(value);
- test_compare(2, strlen(value));
+ test_compare(2
UL
, strlen(value));
test_strcmp("10", value);
free(value);
test_strcmp("10", value);
free(value);
@@
-89,13
+94,13
@@
test_return_t memcached_increment_namespace(memcached_st *memc)
memcached_increment(clone,
test_literal_param("number"),
1, &new_number));
memcached_increment(clone,
test_literal_param("number"),
1, &new_number));
- test_compare(
11
, new_number);
+ test_compare(
uint64_t(11)
, new_number);
test_compare(MEMCACHED_SUCCESS,
memcached_increment(memc,
test_literal_param("number"),
1, &new_number));
test_compare(MEMCACHED_SUCCESS,
memcached_increment(memc,
test_literal_param("number"),
1, &new_number));
- test_compare(
3
, new_number);
+ test_compare(
uint64_t(3)
, new_number);
memcached_free(clone);
memcached_free(clone);