mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
ff470bb853
It is otherwise impossible to determine which test failed sanitizer/valgrind check. test/functional/helpers.lua module return was changed so that tests which do not provide after_each function to get new check will automatically fail.
31 lines
697 B
Lua
31 lines
697 B
Lua
-- Tests for quickfix window's title
|
|
|
|
local helpers = require('test.functional.helpers')(after_each)
|
|
local insert, source = helpers.insert, helpers.source
|
|
local clear, expect = helpers.clear, helpers.expect
|
|
|
|
describe('qf_title', function()
|
|
setup(clear)
|
|
|
|
it('is working', function()
|
|
insert([[
|
|
Results of test_qf_title:]])
|
|
|
|
source([[
|
|
set efm=%E%f:%l:%c:%m
|
|
cgetexpr ['file:1:1:message']
|
|
let qflist=getqflist()
|
|
call setqflist(qflist, 'r')
|
|
copen
|
|
let g:quickfix_title=w:quickfix_title
|
|
wincmd p
|
|
$put =g:quickfix_title
|
|
]])
|
|
|
|
-- Assert buffer contents.
|
|
expect([[
|
|
Results of test_qf_title:
|
|
:setqflist()]])
|
|
end)
|
|
end)
|