mirror of
https://github.com/neovim/neovim.git
synced 2024-12-22 04:05:09 -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.
40 lines
980 B
Lua
40 lines
980 B
Lua
local helpers = require('test.functional.helpers')(after_each)
|
|
local Screen = require('test.functional.ui.screen')
|
|
local clear, execute = helpers.clear, helpers.execute
|
|
|
|
describe("'shortmess'", function()
|
|
local screen
|
|
|
|
before_each(function()
|
|
clear()
|
|
screen = Screen.new(25, 5)
|
|
screen:attach()
|
|
end)
|
|
|
|
after_each(function()
|
|
screen:detach()
|
|
end)
|
|
|
|
describe('"F" flag', function()
|
|
it('hides messages about the files read', function()
|
|
execute('e test')
|
|
screen:expect([[
|
|
^ |
|
|
~ |
|
|
~ |
|
|
~ |
|
|
"test" is a directory |
|
|
]])
|
|
execute('set shortmess=F')
|
|
execute('e test')
|
|
screen:expect([[
|
|
^ |
|
|
~ |
|
|
~ |
|
|
~ |
|
|
:e test |
|
|
]])
|
|
end)
|
|
end)
|
|
end)
|