mirror of
https://github.com/neovim/neovim.git
synced 2025-12-08 23:52:39 +00:00
tests: unit: NVIM_TEST_TRACE_LEVEL: default to 0 #11144
Traces are not useful normally (unless debugging/fixing tests), but only add overhead. Disable them by default.
This commit is contained in:
committed by
Justin M. Keyes
parent
3d3c783fea
commit
b069e9b20f
@@ -545,7 +545,7 @@ local tracehelp = dedent([[
|
||||
local function child_sethook(wr)
|
||||
local trace_level = os.getenv('NVIM_TEST_TRACE_LEVEL')
|
||||
if not trace_level or trace_level == '' then
|
||||
trace_level = 1
|
||||
trace_level = 0
|
||||
else
|
||||
trace_level = tonumber(trace_level)
|
||||
end
|
||||
@@ -708,7 +708,7 @@ local function check_child_err(rd)
|
||||
local eres = sc.read(rd, 2)
|
||||
if eres ~= '$\n' then
|
||||
if #trace == 0 then
|
||||
err = '\nTest crashed, no trace available\n'
|
||||
err = '\nTest crashed, no trace available (check NVIM_TEST_TRACE_LEVEL)\n'
|
||||
else
|
||||
err = '\nTest crashed, trace:\n' .. tracehelp
|
||||
for i = 1, #trace do
|
||||
|
||||
Reference in New Issue
Block a user