summaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2024-12-19 10:23:57 -0800
committerKonstantin Pavlov <thresh@nginx.com>2024-12-19 10:23:57 -0800
commitd8acad350a52a20918c46c09cb0a0f5479400923 (patch)
tree7d9c4b64daa60d3ac121743dfa3735c6fc5687a4 /src/test
parent624debcf17ea7faab01fa841bd4dcd9f308cf306 (diff)
parent27bde184dedcbf687db2f314c60c037623318a8d (diff)
downloadunit-1.34.0-1.tar.gz
unit-1.34.0-1.tar.bz2
Merge tag '1.34.0' into packaging1.34.0-1
Unit 1.34.0 release.
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 },