diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-20 01:20:32 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-01-20 01:20:32 +0000 |
commit | 75f34d8d401a3ec077c270bafcad46e98036325a (patch) | |
tree | ba65dd00626138041687fe3b024620d94a558fb4 /test/rspamd_statfile_test.c | |
parent | 91a390f1334893eadcea1cf575840764cf8c372d (diff) | |
download | rspamd-75f34d8d401a3ec077c270bafcad46e98036325a.tar.gz rspamd-75f34d8d401a3ec077c270bafcad46e98036325a.zip |
More rework.
Diffstat (limited to 'test/rspamd_statfile_test.c')
-rw-r--r-- | test/rspamd_statfile_test.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/rspamd_statfile_test.c b/test/rspamd_statfile_test.c index 753782c9c..7d4d63f06 100644 --- a/test/rspamd_statfile_test.c +++ b/test/rspamd_statfile_test.c @@ -25,21 +25,21 @@ rspamd_statfile_test_func () } /* Create new file */ - g_assert (statfile_pool_create (pool, TEST_FILENAME, 65535) != -1); - g_assert ((st = statfile_pool_open (pool, TEST_FILENAME, 65535, FALSE)) != NULL); + g_assert (rspamd_mmaped_file_create (pool, TEST_FILENAME, 65535) != -1); + g_assert ((st = rspamd_mmaped_file_open (pool, TEST_FILENAME, 65535, FALSE)) != NULL); /* Get and set random blocks */ - statfile_pool_lock_file (pool, st); + rspamd_mmaped_file_lock_file (pool, st); for (i = 0; i < HASHES_NUM; i ++) { - statfile_pool_set_block (pool, st, random_hashes[i], random_hashes[i], now, 1.0); + rspamd_mmaped_file_set_block (pool, st, random_hashes[i], random_hashes[i], now, 1.0); } - statfile_pool_unlock_file (pool, st); + rspamd_mmaped_file_unlock_file (pool, st); for (i = 0; i < HASHES_NUM; i ++) { - v = statfile_pool_get_block (pool, st, random_hashes[i], random_hashes[i], now); + v = rspamd_mmaped_file_get_block (pool, st, random_hashes[i], random_hashes[i], now); g_assert(v == 1.0); } - statfile_pool_delete (pool); + rspamd_mmaped_file_destroy (pool); } |