~pierre-php/libmemcached/libmemcached-windows

« back to all changes in this revision

Viewing changes to tests/udp.c

  • Committer: pierre
  • Date: 2009-11-28 19:35:07 UTC
  • mfrom: (533.1.89 libmemcached)
  • Revision ID: pierre@pierre-win7-20091128193507-amrg03lsrgyas64x
- merge from main libmemcached branch, not tested yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include "server.h"
16
16
 
17
17
/* Prototypes */
18
 
test_return set_test(memcached_st *memc);
 
18
test_return_t set_test(memcached_st *memc);
19
19
void *world_create(void);
20
20
void world_destroy(void *p);
21
21
 
22
 
test_return set_test(memcached_st *memc)
 
22
test_return_t set_test(memcached_st *memc)
23
23
{
24
24
  memcached_return rc;
25
 
  char *key= "foo";
26
 
  char *value= "when we sanitize";
 
25
  const char *key= "foo";
 
26
  const char *value= "when we sanitize";
27
27
 
28
 
  rc= memcached_set(memc, key, strlen(key), 
 
28
  rc= memcached_set(memc, key, strlen(key),
29
29
                    value, strlen(value),
30
30
                    (time_t)0, (uint32_t)0);
31
 
  assert(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
 
31
  test_truth(rc == MEMCACHED_SUCCESS || rc == MEMCACHED_BUFFERED);
32
32
 
33
33
  return TEST_SUCCESS;
34
34
}