diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-08 20:07:07 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-08 20:07:07 +0400 |
commit | 3d1c40c972d68623f88875ec03ae7c8bafbadad5 (patch) | |
tree | 75a34069f368ebb52b47e8c3f605dcde1de3e9cd /test/rspamd_fuzzy_test.c | |
parent | 75bf13b9bda0d1eb98671b68064becd4f6946c14 (diff) | |
download | rspamd-3d1c40c972d68623f88875ec03ae7c8bafbadad5.tar.gz rspamd-3d1c40c972d68623f88875ec03ae7c8bafbadad5.zip |
* Make DNS resolver working
* Many improvements to rspamd test suite: now it CAN be used for testing rspamd functionality
* Write DNS resolver tests
* Fix issues with memory_pool mutexes and with creating of statfiles
Diffstat (limited to 'test/rspamd_fuzzy_test.c')
-rw-r--r-- | test/rspamd_fuzzy_test.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/rspamd_fuzzy_test.c b/test/rspamd_fuzzy_test.c index 9feeb4500..004ebf3c0 100644 --- a/test/rspamd_fuzzy_test.c +++ b/test/rspamd_fuzzy_test.c @@ -68,9 +68,10 @@ rspamd_fuzzy_test_func () msg_debug ("rspamd_fuzzy_test_func: s2, s5 difference between strings is %d", diff2); /* Identical strings */ - g_assert (diff2 == 0); - /* Totally different strings */ - g_assert (diff1 == 200); + if (diff2 != 100) { + msg_err ("hash difference is %d", diff2); + g_assert (diff2 == 100); + } memory_pool_delete (pool); } |