summaryrefslogtreecommitdiffhomepage
path: root/test/nxt_utf8_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_utf8_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_utf8_test.c (renamed from test/nxt_utf8_unit_test.c)7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/nxt_utf8_unit_test.c b/test/nxt_utf8_test.c
index 3bba9681..c7323876 100644
--- a/test/nxt_utf8_unit_test.c
+++ b/test/nxt_utf8_test.c
@@ -5,6 +5,7 @@
*/
#include <nxt_main.h>
+#include "nxt_tests.h"
#define NXT_UTF8_START_TEST 0xc2
@@ -78,7 +79,7 @@ nxt_utf8_overlong(nxt_thread_t *thr, u_char *overlong, size_t len)
nxt_int_t
-nxt_utf8_unit_test(nxt_thread_t *thr)
+nxt_utf8_test(nxt_thread_t *thr)
{
u_char *p, utf8[4];
size_t len;
@@ -89,7 +90,7 @@ nxt_utf8_unit_test(nxt_thread_t *thr)
nxt_thread_time_update(thr);
- nxt_log_error(NXT_LOG_NOTICE, thr->log, "utf8 unit test started");
+ nxt_log_error(NXT_LOG_NOTICE, thr->log, "utf8 test started");
/* Test valid UTF-8. */
@@ -185,6 +186,6 @@ nxt_utf8_unit_test(nxt_thread_t *thr)
return NXT_ERROR;
}
- nxt_log_error(NXT_LOG_NOTICE, thr->log, "utf8 unit test passed");
+ nxt_log_error(NXT_LOG_NOTICE, thr->log, "utf8 test passed");
return NXT_OK;
}