projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Use setenv, not putenv.
[awesomized/libmemcached]
/
tests
/
cycle.cc
diff --git
a/tests/cycle.cc
b/tests/cycle.cc
index 788d7e67bf88bd7ac8eb9d09d89cbc1aa776a8c7..a8ddc8a6fa2acf8cec73ac594aa8600403ed41cd 100644
(file)
--- a/
tests/cycle.cc
+++ b/
tests/cycle.cc
@@
-39,11
+39,11
@@
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;
-#include <libmemcached/memcached.h>
+#include <libmemcached
-1.0
/memcached.h>
static test_return_t server_startup_single_TEST(void *obj)
{
static test_return_t server_startup_single_TEST(void *obj)
{
@@
-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++)
{
@@
-116,14
+118,26
@@
collection_st collection[] ={
{0, 0, 0, 0}
};
{0, 0, 0, 0}
};
-static void *world_create(server_startup_st& servers, test_return_t& )
+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;
+ return NULL;
+ }
+
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)
;
}
}