summaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/nxt_base64_test.c3
-rw-r--r--src/test/nxt_term_parse_test.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/src/test/nxt_base64_test.c b/src/test/nxt_base64_test.c
index 13a772b6..579cbf95 100644
--- a/src/test/nxt_base64_test.c
+++ b/src/test/nxt_base64_test.c
@@ -87,7 +87,8 @@ nxt_base64_test(nxt_thread_t *thr)
ret = nxt_base64_decode(buf, tests[i].enc.start, tests[i].enc.length);
if (!nxt_str_eq(&tests[i].dec, buf, (size_t) ret)) {
- nxt_log_alert(thr->log, "nxt_base64_decode() test \"%V\" failed");
+ nxt_log_alert(thr->log, "nxt_base64_decode() test \"%V\" failed",
+ &tests[i].enc);
return NXT_ERROR;
}
}
diff --git a/src/test/nxt_term_parse_test.c b/src/test/nxt_term_parse_test.c
index 83ae4931..ceae3fe5 100644
--- a/src/test/nxt_term_parse_test.c
+++ b/src/test/nxt_term_parse_test.c
@@ -23,6 +23,7 @@ static const nxt_term_parse_test_t terms[] = {
{ nxt_string("1w d"), 0, -1 },
{ nxt_string("w"), 0, -1 },
{ nxt_string("1d 1w"), 0, -1 },
+ { nxt_string("1 "), 1, 1 },
{ nxt_string("25d"), 0, -2 },
{ nxt_string("300"), 1, 300 },
{ nxt_string("300"), 0, 300000 },