projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fix all include location, and drop versions of the library that were never shipped.
[awesomized/libmemcached]
/
tests
/
memstat.cc
diff --git
a/tests/memstat.cc
b/tests/memstat.cc
index ae8679fb13d47bc30fd8f63336e9b7cdd8ede2ee..b2dea7e9b54e73ea1a5e574c2006cb2e541e78c7 100644
(file)
--- a/
tests/memstat.cc
+++ b/
tests/memstat.cc
@@
-42,7
+42,7
@@
#include <config.h>
#include <libtest/test.hpp>
#include <config.h>
#include <libtest/test.hpp>
-#include <libmemcached/memcached.h>
+#include <libmemcached
-1.0
/memcached.h>
using namespace libtest;
using namespace libtest;
@@
-107,7
+107,7
@@
collection_st collection[] ={
static void *world_create(server_startup_st& servers, test_return_t& error)
{
static void *world_create(server_startup_st& servers, test_return_t& error)
{
- if (
HAVE_MEMCACHED_BINARY == 0
)
+ if (
libtest::has_memcached() == false
)
{
error= TEST_SKIPPED;
return NULL;
{
error= TEST_SKIPPED;
return NULL;
@@
-115,16
+115,16
@@
static void *world_create(server_startup_st& servers, test_return_t& error)
if (server_startup(servers, "memcached", libtest::default_port(), 0, NULL) == false)
{
if (server_startup(servers, "memcached", libtest::default_port(), 0, NULL) == false)
{
- error= TEST_
FAILURE
;
+ error= TEST_
SKIPPED
;
}
return &servers;
}
}
return &servers;
}
-void get_world(
Framework *
world)
+void get_world(
libtest::Framework*
world)
{
{
- world->collections
= collection
;
- world->
_create= world_create
;
+ world->collections
(collection)
;
+ world->
create(world_create)
;
}
}