aboutsummaryrefslogtreecommitdiff
path: root/test/helpers.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2020-09-06 12:52:37 -0400
committerGitHub <noreply@github.com>2020-09-06 12:52:37 -0400
commitd6b280799fb873dfc40b8012d40d0bb54bc9d588 (patch)
treee375e6659e9426c51420cd944c01d9be72e8b3c3 /test/helpers.lua
parentc3e6b6119cbcd1dc49a398074fa57b7467245c5e (diff)
parent83a7b1b5db99be8017dfd4f84d995035dd3b414e (diff)
downloadrneovim-d6b280799fb873dfc40b8012d40d0bb54bc9d588.tar.gz
rneovim-d6b280799fb873dfc40b8012d40d0bb54bc9d588.tar.bz2
rneovim-d6b280799fb873dfc40b8012d40d0bb54bc9d588.zip
Merge pull request #12802 from jamessan/travis-ubuntu-bump
Diffstat (limited to 'test/helpers.lua')
-rw-r--r--test/helpers.lua15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/helpers.lua b/test/helpers.lua
index 40b93d9935..7817345617 100644
--- a/test/helpers.lua
+++ b/test/helpers.lua
@@ -200,14 +200,25 @@ function module.check_logs()
end
end
fd:close()
- os.remove(file)
if #lines > 0 then
+ local status, f
local out = io.stdout
+ if os.getenv('SYMBOLIZER') then
+ status, f = pcall(module.popen_r, os.getenv('SYMBOLIZER'), '-l', file)
+ end
out:write(start_msg .. '\n')
- out:write('= ' .. table.concat(lines, '\n= ') .. '\n')
+ if status then
+ for line in f:lines() do
+ out:write('= '..line..'\n')
+ end
+ f:close()
+ else
+ out:write('= ' .. table.concat(lines, '\n= ') .. '\n')
+ end
out:write(select(1, start_msg:gsub('.', '=')) .. '\n')
table.insert(runtime_errors, file)
end
+ os.remove(file)
end
end
end