Updated copyright headers.
[m6w6/libmemcached] / tests / udp.c
index 2fc178f07f15bfe9833c7967994467957b92b910..cdcd4ba4c7cfff20c9bbd9a5bcd72168d2630b61 100644 (file)
@@ -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.
 */
 #include "server.h"
 
 /* Prototypes */
-test_return set_test(memcached_st *memc);
+test_return_t set_test(memcached_st *memc);
 void *world_create(void);
 void world_destroy(void *p);
 
-test_return set_test(memcached_st *memc)
+test_return_t set_test(memcached_st *memc)
 {
-  memcached_return rc;
+  memcached_return_t rc;
   const char *key= "foo";
   const char *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);
-  assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
+  test_truth(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
 
   return TEST_SUCCESS;
 }