summaryrefslogtreecommitdiffhomepage
path: root/test/nxt_gmtime_test.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-08-30 00:31:02 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-08-30 00:31:02 +0300
commitcdc7e4479ff5aa08df0857a13a7acd7a00b79c89 (patch)
treea57bf9251fc79d9ef7bd3d33b1d05f3813dc3d4a /test/nxt_gmtime_test.c
parent92f3b852981c739a2e6ff6d50dc646fe86031b27 (diff)
downloadunit-cdc7e4479ff5aa08df0857a13a7acd7a00b79c89.tar.gz
unit-cdc7e4479ff5aa08df0857a13a7acd7a00b79c89.tar.bz2
Lib unit tests have been renamed to tests.
Diffstat (limited to '')
-rw-r--r--test/nxt_gmtime_test.c (renamed from test/nxt_gmtime_unit_test.c)9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/nxt_gmtime_unit_test.c b/test/nxt_gmtime_test.c
index eea916f3..cec81ab4 100644
--- a/test/nxt_gmtime_unit_test.c
+++ b/test/nxt_gmtime_test.c
@@ -5,6 +5,7 @@
*/
#include <nxt_main.h>
+#include "nxt_tests.h"
#if (NXT_TIME_T_SIZE == 4)
@@ -22,14 +23,14 @@
nxt_int_t
-nxt_gmtime_unit_test(nxt_thread_t *thr)
+nxt_gmtime_test(nxt_thread_t *thr)
{
struct tm tm0, *tm1;
nxt_time_t s;
nxt_nsec_t start, end;
nxt_thread_time_update(thr);
- nxt_log_error(NXT_LOG_NOTICE, thr->log, "gmtime unit test started");
+ nxt_log_error(NXT_LOG_NOTICE, thr->log, "gmtime test started");
for (s = 0; s < NXT_GMTIME_MAX; s += 86400) {
@@ -43,7 +44,7 @@ nxt_gmtime_unit_test(nxt_thread_t *thr)
|| tm0.tm_wday != tm1->tm_wday)
{
nxt_log_alert(thr->log,
- "gmtime unit test failed: %T @ %02d.%02d.%d",
+ "gmtime test failed: %T @ %02d.%02d.%d",
s, tm1->tm_mday, tm1->tm_mon + 1,
tm1->tm_year + 1900);
return NXT_ERROR;
@@ -78,6 +79,6 @@ nxt_gmtime_unit_test(nxt_thread_t *thr)
nxt_log_error(NXT_LOG_NOTICE, thr->log, "gmtime(): %0.1fns",
(end - start) / 10000000.0);
- nxt_log_error(NXT_LOG_NOTICE, thr->log, "gmtime unit test passed");
+ nxt_log_error(NXT_LOG_NOTICE, thr->log, "gmtime test passed");
return NXT_OK;
}