projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Additional test to test for failure on get replication.
[awesomized/libmemcached]
/
tests
/
error_conditions.cc
diff --git
a/tests/error_conditions.cc
b/tests/error_conditions.cc
index d06f422559397bbb6834c8698d63f35522bca72e..50a64da5e8981ab00303e08b036fbb1b5f33ed41 100644
(file)
--- a/
tests/error_conditions.cc
+++ b/
tests/error_conditions.cc
@@
-44,29
+44,20
@@
#include <libtest/test.h>
#include <tests/error_conditions.h>
#include <libtest/test.h>
#include <tests/error_conditions.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-test_return_t memcached_increment_MEMCACHED_NO_SERVERS(memcached_st *junk)
+test_return_t memcached_increment_MEMCACHED_NO_SERVERS(memcached_st *)
{
{
- (void)junk;
memcached_st *memc_ptr;
memc_ptr= memcached_create(NULL);
test_true(memc_ptr);
memcached_st *memc_ptr;
memc_ptr= memcached_create(NULL);
test_true(memc_ptr);
- memcached_increment(memc_ptr, memcached_
string_with_size
("dead key"), 1, NULL);
+ memcached_increment(memc_ptr, memcached_
literal_param
("dead key"), 1, NULL);
test_true(memcached_last_error(memc_ptr) == MEMCACHED_NO_SERVERS);
test_true(memcached_last_error(memc_ptr) == MEMCACHED_NO_SERVERS);
- memcached_increment(memc_ptr, memcached_
string_with_size
("dead key"), 1, NULL);
+ memcached_increment(memc_ptr, memcached_
literal_param
("dead key"), 1, NULL);
test_true(memcached_last_error(memc_ptr) == MEMCACHED_NO_SERVERS);
memcached_free(memc_ptr);
return TEST_SUCCESS;
}
test_true(memcached_last_error(memc_ptr) == MEMCACHED_NO_SERVERS);
memcached_free(memc_ptr);
return TEST_SUCCESS;
}
-
-#ifdef __cplusplus
-}
-#endif