diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-06-19 16:26:19 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-06-19 16:26:19 +0300 |
commit | b1b9f621a44725509aa7b6eab7305542945893a3 (patch) | |
tree | c9925a19d7304f52d9d5e2cc87a5ba5cc72acd4a /test/nxt_lib_unit_test.c | |
parent | 7574c64992b98d3dfbc3dd101bd0f7d78bad0823 (diff) | |
download | unit-b1b9f621a44725509aa7b6eab7305542945893a3.tar.gz unit-b1b9f621a44725509aa7b6eab7305542945893a3.tar.bz2 |
Memory pools refactoring.
Diffstat (limited to '')
-rw-r--r-- | test/nxt_lib_unit_test.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/test/nxt_lib_unit_test.c b/test/nxt_lib_unit_test.c index 669b0228..50615828 100644 --- a/test/nxt_lib_unit_test.c +++ b/test/nxt_lib_unit_test.c @@ -24,6 +24,7 @@ nxt_msec_less(nxt_msec_t first, nxt_msec_t second) int nxt_cdecl main(int argc, char **argv) { + nxt_task_t task; nxt_thread_t *thr; if (nxt_lib_start("lib_unit_test", argv, &environ) != NXT_OK) { @@ -31,8 +32,10 @@ main(int argc, char **argv) } nxt_main_log.level = NXT_LOG_INFO; + task.log = &nxt_main_log; thr = nxt_thread(); + thr->task = &task; #if (NXT_UNIT_TEST_RTDTSC) @@ -96,15 +99,15 @@ main(int argc, char **argv) return 1; } - if (nxt_mem_cache_pool_unit_test(thr, 100, 40000, 128 - 1) != NXT_OK) { + if (nxt_mp_unit_test(thr, 100, 40000, 128 - 1) != NXT_OK) { return 1; } - if (nxt_mem_cache_pool_unit_test(thr, 100, 1000, 4096 - 1) != NXT_OK) { + if (nxt_mp_unit_test(thr, 100, 1000, 4096 - 1) != NXT_OK) { return 1; } - if (nxt_mem_cache_pool_unit_test(thr, 1000, 100, 64 * 1024 - 1) != NXT_OK) { + if (nxt_mp_unit_test(thr, 1000, 100, 64 * 1024 - 1) != NXT_OK) { return 1; } |