Skip to content

Commit d13e3d8

Browse files
committed
Tests: Move ngx.re.opt into init_by_lua
1 parent f06a3c4 commit d13e3d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

t/re-find.t

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ our $HttpConfig = <<_EOC_;
3232
-- jit.opt.start("hotloop=1")
3333
-- jit.opt.start("loopunroll=1000000")
3434
-- jit.off()
35+
36+
ngx.re.opt("jit_stack_size", 128 * 1024)
3537
';
3638
_EOC_
3739
@@ -269,7 +271,7 @@ qr/\[TRACE \d+ content_by_lua\(nginx\.conf:\d+\):4 loop\]/
269271
location = /re {
270272
access_log off;
271273
content_by_lua '
272-
ngx.re.opt("jit_stack_size", 128 * 1024)
274+
-- ngx.re.opt("jit_stack_size", 128 * 1024)
273275
local from, to, err
274276
local find = ngx.re.find
275277
local s = "a"
@@ -309,7 +311,7 @@ bad argument type
309311
location = /re {
310312
access_log off;
311313
content_by_lua '
312-
ngx.re.opt("jit_stack_size", 128 * 1024)
314+
-- ngx.re.opt("jit_stack_size", 128 * 1024)
313315
local from, to, err
314316
local find = ngx.re.find
315317
local s = "a"

0 commit comments

Comments
 (0)