projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Updated copyright headers.
[m6w6/libmemcached]
/
tests
/
udp.c
diff --git
a/tests/udp.c
b/tests/udp.c
index b6ad2065ed7f68efd4e5a9a0e32d7d116f8c646d..cdcd4ba4c7cfff20c9bbd9a5bcd72168d2630b61 100644
(file)
--- a/
tests/udp.c
+++ b/
tests/udp.c
@@
-1,3
+1,14
@@
+/* LibMemcached
+ * Copyright (C) 2006-2009 Brian Aker
+ * All rights reserved.
+ *
+ * Use and distribution licensed under the BSD license. See
+ * the COPYING file in the parent directory for full text.
+ *
+ * Summary:
+ *
+ */
+
/*
Sample test application.
*/
/*
Sample test application.
*/
@@
-14,18
+25,23
@@
#include "test.h"
#include "server.h"
#include "test.h"
#include "server.h"
-uint8_t set_test(memcached_st *memc)
+/* Prototypes */
+test_return_t set_test(memcached_st *memc);
+void *world_create(void);
+void world_destroy(void *p);
+
+test_return_t set_test(memcached_st *memc)
{
{
- memcached_return rc;
- char *key= "foo";
- char *value= "when we sanitize";
+ memcached_return
_t
rc;
+ c
onst c
har *key= "foo";
+ c
onst c
har *value= "when we sanitize";
- rc= memcached_set(memc, key, strlen(key),
+ rc= memcached_set(memc, key, strlen(key),
value, strlen(value),
(time_t)0, (uint32_t)0);
value, strlen(value),
(time_t)0, (uint32_t)0);
-
assert
(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
+
test_truth
(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
- return
0
;
+ return
TEST_SUCCESS
;
}
test_st tests[] ={
}
test_st tests[] ={