projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Add small ketama test.
[m6w6/libmemcached]
/
tests
/
cycle.cc
diff --git
a/tests/cycle.cc
b/tests/cycle.cc
index e18037df3aaabea03f8deae88dc73ea9850ecbe8..a8ddc8a6fa2acf8cec73ac594aa8600403ed41cd 100644
(file)
--- a/
tests/cycle.cc
+++ b/
tests/cycle.cc
@@
-39,7
+39,7
@@
Test that we are cycling the servers we are creating during testing.
*/
Test that we are cycling the servers we are creating during testing.
*/
-#include <config.h>
+#include <
mem_
config.h>
#include <libtest/test.hpp>
using namespace libtest;
#include <libtest/test.hpp>
using namespace libtest;
@@
-57,6
+57,8
@@
static test_return_t server_startup_single_TEST(void *obj)
static test_return_t server_startup_multiple_TEST(void *obj)
{
static test_return_t server_startup_multiple_TEST(void *obj)
{
+ test_skip(true, jenkins_is_caller());
+
server_startup_st *servers= (server_startup_st*)obj;
for (size_t x= 0; x < 10; x++)
{
server_startup_st *servers= (server_startup_st*)obj;
for (size_t x= 0; x < 10; x++)
{
@@
-118,6
+120,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 (jenkins_is_caller())
+ {
+ error= TEST_SKIPPED;
+ return NULL;
+ }
+
if (libtest::has_memcached() == false)
{
error= TEST_SKIPPED;
if (libtest::has_memcached() == false)
{
error= TEST_SKIPPED;