aboutsummaryrefslogtreecommitdiffstats
path: root/test/rspamd_memcached_test.c
diff options
context:
space:
mode:
authorcebka@cebka-laptop <cebka@cebka-laptop>2008-10-13 19:06:07 +0400
committercebka@cebka-laptop <cebka@cebka-laptop>2008-10-13 19:06:07 +0400
commitda93e9d6351e238ff66d04b9a7a712f161e2defc (patch)
tree3613023247d7e80dc4e3fc74b9ebf6b9a1464662 /test/rspamd_memcached_test.c
parent6c55c3314c9599fa1d97d7afd6a31b1982805265 (diff)
downloadrspamd-da93e9d6351e238ff66d04b9a7a712f161e2defc.tar.gz
rspamd-da93e9d6351e238ff66d04b9a7a712f161e2defc.zip
* Implement expression parser (convertor to inverse polish record)
* Improve configure system by implementing dependencies * Add .depend files for subdirs that requre it * Write simple test for expressions parser
Diffstat (limited to 'test/rspamd_memcached_test.c')
-rw-r--r--test/rspamd_memcached_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/rspamd_memcached_test.c b/test/rspamd_memcached_test.c
index 1993c756e..60ae1d3eb 100644
--- a/test/rspamd_memcached_test.c
+++ b/test/rspamd_memcached_test.c
@@ -33,7 +33,7 @@ memcached_callback (memcached_ctx_t *ctx, memc_error_t error, void *data)
break;
case CMD_READ:
g_assert (error == OK);
- g_assert (!strcmp(ctx->param->buf, buf));
+ g_assert (!memcmp(ctx->param->buf, buf, ctx->param->bufsize));
msg_debug ("Read ok");
memc_close_ctx (ctx);
tv.tv_sec = 0;