projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Some more updates to the C++ test file to remove solaris warnings.
[m6w6/libmemcached]
/
tests
/
udp.c
diff --git
a/tests/udp.c
b/tests/udp.c
index df73b2614cebd5a89b55f834736212a7b69e0d7c..2fc178f07f15bfe9833c7967994467957b92b910 100644
(file)
--- a/
tests/udp.c
+++ b/
tests/udp.c
@@
-2,7
+2,7
@@
Sample test application.
*/
#include <assert.h>
Sample test application.
*/
#include <assert.h>
-#include <memcached.h>
+#include <
libmemcached/
memcached.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@
-14,18
+14,23
@@
#include "test.h"
#include "server.h"
#include "test.h"
#include "server.h"
-uint8_t set_test(memcached_st *memc)
+/* Prototypes */
+test_return set_test(memcached_st *memc);
+void *world_create(void);
+void world_destroy(void *p);
+
+test_return set_test(memcached_st *memc)
{
memcached_return rc;
{
memcached_return rc;
- char *key= "foo";
- char *value= "when we sanitize";
+ c
onst c
har *key= "foo";
+ c
onst c
har *value= "when we sanitize";
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
- return
0
;
+ return
TEST_SUCCESS
;
}
test_st tests[] ={
}
test_st tests[] ={