Skip to content
Permalink
Browse files

tests: hardened a few JIT-related tests.

  • Loading branch information...
thibaultcha committed Feb 11, 2019
1 parent bc35e8e commit fc141ce192189b91c63802c54e20863b41f39a99
Showing with 8 additions and 8 deletions.
  1. +2 −2 t/ndk.t
  2. +6 −6 t/request.t
@@ -47,11 +47,11 @@ __DATA__
ngx.say(set_unescape_uri("a%20b"))

local res
for i = 1, $TEST_NGINX_HOTLOOP + 2 do
for i = 1, $TEST_NGINX_HOTLOOP * 5 do
res = set_escape_uri(" :")
end

for i = 1, $TEST_NGINX_HOTLOOP + 2 do
for i = 1, $TEST_NGINX_HOTLOOP * 5 do
res = set_unescape_uri("a%20b")
end
}
@@ -24,7 +24,7 @@ __DATA__
content_by_lua_block {
local ffi = require "ffi"
local headers
for i = 1, 300 do
for i = 1, 500 do
headers = ngx.req.get_headers()
end
local keys = {}
@@ -66,7 +66,7 @@ qr/ -- NYI: (?!return to lower frame)/,
content_by_lua_block {
local ffi = require "ffi"
local headers
for i = 1, 300 do
for i = 1, 500 do
headers = ngx.req.get_headers(100, true)
end
local keys = {}
@@ -106,7 +106,7 @@ qr/\[TRACE\s+\d+ .*? -> \d+\]/
content_by_lua_block {
local ffi = require "ffi"
local headers
for i = 1, 300 do
for i = 1, 500 do
headers = ngx.req.get_headers(2, true)
end
local keys = {}
@@ -143,7 +143,7 @@ qr/\[TRACE\s+\d+ content_by_lua\(nginx\.conf:\d+\):4 loop\]/
content_by_lua_block {
local ffi = require "ffi"
local headers, header
for i = 1, 100 do
for i = 1, 500 do
headers = ngx.req.get_headers()
header = headers["foo_BAR"]
end
@@ -185,7 +185,7 @@ qr/ -- NYI: (?!return to lower frame at)(?!C function 0x[0-9a-f]+ at content_by_
content_by_lua_block {
local ffi = require "ffi"
local args
for i = 1, 300 do
for i = 1, 500 do
args = ngx.req.get_uri_args()
end
if type(args) ~= "table" then
@@ -229,7 +229,7 @@ qr/\[TRACE\s+\d+ .*? -> \d+\]/
content_by_lua_block {
local ffi = require "ffi"
local args
for i = 1, 300 do
for i = 1, 500 do
args = ngx.req.get_uri_args()
end
if type(args) ~= "table" then

0 comments on commit fc141ce

Please sign in to comment.
You can’t perform that action at this time.