diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-08-30 00:31:02 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-08-30 00:31:02 +0300 |
commit | cdc7e4479ff5aa08df0857a13a7acd7a00b79c89 (patch) | |
tree | a57bf9251fc79d9ef7bd3d33b1d05f3813dc3d4a /src/nxt_random.c | |
parent | 92f3b852981c739a2e6ff6d50dc646fe86031b27 (diff) | |
download | unit-cdc7e4479ff5aa08df0857a13a7acd7a00b79c89.tar.gz unit-cdc7e4479ff5aa08df0857a13a7acd7a00b79c89.tar.bz2 |
Lib unit tests have been renamed to tests.
Diffstat (limited to 'src/nxt_random.c')
-rw-r--r-- | src/nxt_random.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nxt_random.c b/src/nxt_random.c index ea73ae18..38b14e56 100644 --- a/src/nxt_random.c +++ b/src/nxt_random.c @@ -162,10 +162,10 @@ nxt_random_byte(nxt_random_t *r) } -#if (NXT_LIB_UNIT_TEST) +#if (NXT_TESTS) nxt_int_t -nxt_random_unit_test(nxt_thread_t *thr) +nxt_random_test(nxt_thread_t *thr) { nxt_uint_t n; nxt_random_t r; @@ -188,14 +188,13 @@ nxt_random_unit_test(nxt_thread_t *thr) } if (nxt_random(&r) == 0x6FCAE186) { - nxt_log_error(NXT_LOG_NOTICE, thr->log, - "arc4random unit test passed"); + nxt_log_error(NXT_LOG_NOTICE, thr->log, "arc4random test passed"); return NXT_OK; } } - nxt_log_error(NXT_LOG_NOTICE, thr->log, "arc4random unit test failed"); + nxt_log_error(NXT_LOG_NOTICE, thr->log, "arc4random test failed"); return NXT_ERROR; } |