projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Update with current fixes.
[m6w6/libmemcached]
/
example
/
t
/
memcached_light.cc
diff --git
a/example/t/memcached_light.cc
b/example/t/memcached_light.cc
index b9c4e5fb5782f7e427a2e43cb9907cb1986c9927..9158b1425de8dd34c95d164e66015c7eaa58ed3b 100644
(file)
--- a/
example/t/memcached_light.cc
+++ b/
example/t/memcached_light.cc
@@
-199,6
+199,12
@@
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 (access(executable.c_str(), X_OK) != 0)
+ {
+ error= TEST_SKIPPED;
+ return NULL;
+ }
+
if (HAVE_MEMCACHED_LIGHT_BINARY == 0)
{
error= TEST_SKIPPED;
if (HAVE_MEMCACHED_LIGHT_BINARY == 0)
{
error= TEST_SKIPPED;
@@
-208,6
+214,7
@@
static void *world_create(server_startup_st& servers, test_return_t& error)
if (server_startup(servers, "memcached-light", libtest::default_port(), 0, NULL) == 0)
{
error= TEST_FAILURE;
if (server_startup(servers, "memcached-light", libtest::default_port(), 0, NULL) == 0)
{
error= TEST_FAILURE;
+ return NULL;
}
}