summaryrefslogtreecommitdiffhomepage
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/nxt_clone_test.c6
-rw-r--r--src/test/nxt_http_parse_test.c4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/test/nxt_clone_test.c b/src/test/nxt_clone_test.c
index 64b9ddea..1a864f0e 100644
--- a/src/test/nxt_clone_test.c
+++ b/src/test/nxt_clone_test.c
@@ -560,9 +560,9 @@ nxt_clone_test_parse_map(nxt_task_t *task, nxt_str_t *map_str,
nxt_runtime_t *rt;
nxt_conf_value_t *array, *obj, *value;
- static nxt_str_t host_name = nxt_string("host");
- static nxt_str_t cont_name = nxt_string("container");
- static nxt_str_t size_name = nxt_string("size");
+ static const nxt_str_t host_name = nxt_string("host");
+ static const nxt_str_t cont_name = nxt_string("container");
+ static const nxt_str_t size_name = nxt_string("size");
rt = task->thread->runtime;
diff --git a/src/test/nxt_http_parse_test.c b/src/test/nxt_http_parse_test.c
index 5f1a518c..474b3f8d 100644
--- a/src/test/nxt_http_parse_test.c
+++ b/src/test/nxt_http_parse_test.c
@@ -762,7 +762,7 @@ nxt_http_parse_test_request_line(nxt_http_request_parse_t *rp,
return NXT_ERROR;
}
- if (rp->complex_target != (test->complex_target | test->quoted_target)) {
+ if (rp->complex_target != test->complex_target) {
nxt_log_alert(log, "http parse test case failed:\n"
" - request:\n\"%V\"\n"
" - complex_target: %d (expected: %d)",
@@ -770,7 +770,6 @@ nxt_http_parse_test_request_line(nxt_http_request_parse_t *rp,
return NXT_ERROR;
}
-#if 0
if (rp->quoted_target != test->quoted_target) {
nxt_log_alert(log, "http parse test case failed:\n"
" - request:\n\"%V\"\n"
@@ -779,6 +778,7 @@ nxt_http_parse_test_request_line(nxt_http_request_parse_t *rp,
return NXT_ERROR;
}
+#if 0
if (rp->space_in_target != test->space_in_target) {
nxt_log_alert(log, "http parse test case failed:\n"
" - request:\n\"%V\"\n"