tests: fix non-controversial misuse of `pending` (#11247)
Ref: https://github.com/neovim/neovim/pull/11184
This commit is contained in:
parent
0785f8e8b1
commit
4bbad54817
|
@ -317,8 +317,7 @@ describe('server -> client', function()
|
|||
set_session(server)
|
||||
local status, address = pcall(funcs.serverstart, "127.0.0.1:")
|
||||
if not status then
|
||||
pending('no ipv4 stack', function() end)
|
||||
return
|
||||
pending('no ipv4 stack')
|
||||
end
|
||||
eq('127.0.0.1:', string.sub(address,1,10))
|
||||
connect_test(server, 'tcp', address)
|
||||
|
@ -329,8 +328,7 @@ describe('server -> client', function()
|
|||
set_session(server)
|
||||
local status, address = pcall(funcs.serverstart, '::1:')
|
||||
if not status then
|
||||
pending('no ipv6 stack', function() end)
|
||||
return
|
||||
pending('no ipv6 stack')
|
||||
end
|
||||
eq('::1:', string.sub(address,1,4))
|
||||
connect_test(server, 'tcp', address)
|
||||
|
@ -349,8 +347,7 @@ describe('server -> client', function()
|
|||
it('does not deadlock', function()
|
||||
if not helpers.isCI('travis') and helpers.is_os('mac') then
|
||||
-- It does, in fact, deadlock on QuickBuild. #6851
|
||||
pending("deadlocks on QuickBuild", function() end)
|
||||
return
|
||||
pending("deadlocks on QuickBuild")
|
||||
end
|
||||
local address = funcs.serverlist()[1]
|
||||
local first = string.sub(address,1,1)
|
||||
|
|
|
@ -202,8 +202,7 @@ describe('jobs', function()
|
|||
if helpers.isCI('travis') and os.getenv('CC') == 'gcc-4.9'
|
||||
and helpers.is_os('mac') then
|
||||
-- XXX: Hangs Travis macOS since e9061117a5b8f195c3f26a5cb94e18ddd7752d86.
|
||||
pending("[Hangs on Travis macOS. #5002]", function() end)
|
||||
return
|
||||
pending("[Hangs on Travis macOS. #5002]")
|
||||
end
|
||||
|
||||
nvim('command', "let j = jobstart(['cat', '-'], g:job_opts)")
|
||||
|
|
|
@ -41,7 +41,7 @@ describe(':write', function()
|
|||
command("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
|
||||
end
|
||||
if eval('v:shell_error') ~= 0 then
|
||||
pending('Cannot create symlink', function()end)
|
||||
pending('Cannot create symlink')
|
||||
end
|
||||
source([[
|
||||
edit test_bkc_link.txt
|
||||
|
@ -61,7 +61,7 @@ describe(':write', function()
|
|||
command("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
|
||||
end
|
||||
if eval('v:shell_error') ~= 0 then
|
||||
pending('Cannot create symlink', function()end)
|
||||
pending('Cannot create symlink')
|
||||
end
|
||||
source([[
|
||||
edit test_bkc_link.txt
|
||||
|
@ -75,8 +75,7 @@ describe(':write', function()
|
|||
it("appends FIFO file", function()
|
||||
-- mkfifo creates read-only .lnk files on Windows
|
||||
if iswin() or eval("executable('mkfifo')") == 0 then
|
||||
pending('missing "mkfifo" command', function()end)
|
||||
return
|
||||
pending('missing "mkfifo" command')
|
||||
end
|
||||
|
||||
local text = "some fifo text from write_spec"
|
||||
|
|
|
@ -56,7 +56,7 @@ describe('Test for delete()', function()
|
|||
endif
|
||||
]])
|
||||
if eval('v:shell_error') ~= 0 then
|
||||
pending('Cannot create symlink', function()end)
|
||||
pending('Cannot create symlink')
|
||||
end
|
||||
-- Delete the link, not the file
|
||||
eq(0, eval("delete('Xlink')"))
|
||||
|
|
|
@ -1287,7 +1287,7 @@ describe("TUI 'term' option", function()
|
|||
elseif is_macos then
|
||||
local status, _ = pcall(assert_term, "xterm", "xterm")
|
||||
if not status then
|
||||
pending("macOS: unibilium could not find terminfo", function() end)
|
||||
pending("macOS: unibilium could not find terminfo")
|
||||
end
|
||||
else
|
||||
assert_term("xterm", "xterm")
|
||||
|
|
|
@ -821,8 +821,7 @@ describe('cmdline redraw', function()
|
|||
|
||||
it('with <Cmd>', function()
|
||||
if 'openbsd' == helpers.uname() then
|
||||
pending('FIXME #10804', function() end)
|
||||
return
|
||||
pending('FIXME #10804')
|
||||
end
|
||||
command('cmap a <Cmd>call sin(0)<CR>') -- no-op
|
||||
feed(':012345678901234567890123456789')
|
||||
|
|
|
@ -50,8 +50,7 @@ local function test_embed(ext_linegrid)
|
|||
|
||||
it("doesn't erase output when setting color scheme", function()
|
||||
if 'openbsd' == helpers.uname() then
|
||||
pending('FIXME #10804', function() end)
|
||||
return
|
||||
pending('FIXME #10804')
|
||||
end
|
||||
startup('--cmd', 'echoerr "foo"', '--cmd', 'color default', '--cmd', 'echoerr "bar"')
|
||||
screen:expect([[
|
||||
|
|
|
@ -51,8 +51,7 @@ describe("shell command :!", function()
|
|||
|
||||
it("throttles shell-command output greater than ~10KB", function()
|
||||
if 'openbsd' == helpers.uname() then
|
||||
pending('FIXME #10804', function() end)
|
||||
return
|
||||
pending('FIXME #10804')
|
||||
end
|
||||
child_session.feed_data(":!"..nvim_dir.."/shell-test REP 30001 foo\n")
|
||||
|
||||
|
@ -96,8 +95,7 @@ describe("shell command :!", function()
|
|||
|
||||
it('handles control codes', function()
|
||||
if iswin() then
|
||||
pending('missing printf', function() end)
|
||||
return
|
||||
pending('missing printf')
|
||||
end
|
||||
local screen = Screen.new(50, 4)
|
||||
screen:attach()
|
||||
|
|
Loading…
Reference in New Issue